2015-09-29 14:31:52 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Wallabag\ApiBundle\Entity;
|
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
2015-12-22 10:16:34 +01:00
|
|
|
use FOS\OAuthServerBundle\Entity\Client as BaseClient;
|
2015-09-29 14:31:52 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @ORM\Table("oauth2_clients")
|
|
|
|
* @ORM\Entity
|
|
|
|
*/
|
|
|
|
class Client extends BaseClient
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @ORM\Id
|
|
|
|
* @ORM\Column(type="integer")
|
|
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
|
|
*/
|
|
|
|
protected $id;
|
|
|
|
|
2016-05-21 18:09:38 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="name", type="text", nullable=true)
|
|
|
|
*/
|
|
|
|
protected $name;
|
|
|
|
|
2015-09-29 14:31:52 +02:00
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
parent::__construct();
|
|
|
|
}
|
2016-05-21 18:09:38 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get name.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getName()
|
|
|
|
{
|
|
|
|
return $this->name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set name.
|
|
|
|
*
|
|
|
|
* @param string $name
|
|
|
|
*
|
|
|
|
* @return Client
|
|
|
|
*/
|
|
|
|
public function setName($name)
|
|
|
|
{
|
|
|
|
$this->name = $name;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2015-09-29 14:31:52 +02:00
|
|
|
}
|