]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/ApiBundle/Entity/Client.php
added name on client
[github/wallabag/wallabag.git] / src / Wallabag / ApiBundle / Entity / Client.php
CommitLineData
fcb1fba5
NL
1<?php
2
3namespace Wallabag\ApiBundle\Entity;
4
fcb1fba5 5use Doctrine\ORM\Mapping as ORM;
619cc453 6use FOS\OAuthServerBundle\Entity\Client as BaseClient;
fcb1fba5
NL
7
8/**
9 * @ORM\Table("oauth2_clients")
10 * @ORM\Entity
11 */
12class Client extends BaseClient
13{
14 /**
15 * @ORM\Id
16 * @ORM\Column(type="integer")
17 * @ORM\GeneratedValue(strategy="AUTO")
18 */
19 protected $id;
20
9c545fe0
TC
21 /**
22 * @var string
23 *
119914e6 24 * @ORM\Column(name="title", type="text", nullable=true)
9c545fe0
TC
25 */
26 protected $name;
27
fcb1fba5
NL
28 public function __construct()
29 {
30 parent::__construct();
31 }
9c545fe0
TC
32
33 /**
34 * Get name.
35 *
36 * @return string
37 */
38 public function getName()
39 {
40 return $this->name;
41 }
42
43 /**
44 * Set name.
45 *
46 * @param string $name
47 *
48 * @return Client
49 */
50 public function setName($name)
51 {
52 $this->name = $name;
53
54 return $this;
55 }
fcb1fba5 56}