1 | <?php |
||
12 | class Client implements ClientEntityInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var string $id |
||
16 | * @Id |
||
17 | * @Column(type="string",length=40) |
||
18 | * @GeneratedValue |
||
19 | */ |
||
20 | private $id; |
||
21 | |||
22 | /** |
||
23 | * @var string $secret |
||
24 | * @Column(type="string",length=40) |
||
25 | */ |
||
26 | private $secret; |
||
27 | |||
28 | /** |
||
29 | * @var string $name |
||
30 | * @Column(type="string",length=255) |
||
31 | */ |
||
32 | private $name; |
||
33 | |||
34 | /** |
||
35 | * @var bool $autoApprove |
||
36 | * @Column(type="boolean") |
||
37 | */ |
||
38 | private $autoApprove = false; |
||
39 | |||
40 | /** |
||
41 | * @var ArrayCollection $endPoints |
||
42 | * @OneToMany(targetEntity="OAuth\EndPoint", mappedBy="clientId") |
||
43 | */ |
||
44 | private $endPoints; |
||
45 | |||
46 | public function __construct() |
||
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | public function getId() |
||
58 | |||
59 | /** |
||
60 | * @param string $id |
||
61 | * @return Client |
||
62 | */ |
||
63 | public function setId($id) |
||
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | public function getSecret() |
||
76 | |||
77 | /** |
||
78 | * @param string $secret |
||
79 | * @return Client |
||
80 | */ |
||
81 | public function setSecret($secret) |
||
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | public function getName() |
||
94 | |||
95 | /** |
||
96 | * @param string $name |
||
97 | * @return Client |
||
98 | */ |
||
99 | public function setName($name) |
||
104 | |||
105 | /** |
||
106 | * @return bool |
||
107 | */ |
||
108 | public function isAutoApprove() |
||
112 | |||
113 | /** |
||
114 | * @param bool $autoApprove |
||
115 | * @return Client |
||
116 | */ |
||
117 | public function setAutoApprove($autoApprove) |
||
122 | |||
123 | /** |
||
124 | * @return mixed |
||
125 | */ |
||
126 | public function getEndPoints() |
||
130 | |||
131 | /** |
||
132 | * @param mixed $endPoints |
||
133 | * @return Client |
||
134 | */ |
||
135 | public function setEndPoints($endPoints) |
||
140 | |||
141 | /** |
||
142 | * @return mixed |
||
143 | */ |
||
144 | public function getIdentifier() |
||
148 | |||
149 | /** |
||
150 | * @return string |
||
151 | */ |
||
152 | public function getRedirectUri() |
||
157 | |||
158 | |||
159 | } |