1 | <?php |
||
12 | class Client extends BaseClient |
||
13 | { |
||
14 | /** |
||
15 | * @ORM\Id |
||
16 | * @ORM\Column(type="integer") |
||
17 | * @ORM\GeneratedValue(strategy="AUTO") |
||
18 | */ |
||
19 | protected $id; |
||
20 | |||
21 | /** |
||
22 | * @ORM\Column(type="string", nullable=true) |
||
23 | */ |
||
24 | public $type; |
||
25 | |||
26 | /** |
||
27 | * @ORM\Column(type="json_array", nullable=true) |
||
28 | */ |
||
29 | public $meta; |
||
30 | |||
31 | /** |
||
32 | * @Serializer\VirtualProperty |
||
33 | * @Serializer\SerializedName("client_id") |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getClientId() |
||
41 | |||
42 | public function __construct() |
||
46 | |||
47 | public function setType($type) |
||
53 | |||
54 | public function getType() |
||
58 | |||
59 | public function setMeta($meta) |
||
65 | |||
66 | public function getMeta() |
||
70 | |||
71 | /** |
||
72 | * Check if the given client type is the same as the current user. |
||
73 | * |
||
74 | * @param string $typeToCheck client type to check |
||
75 | * |
||
76 | * @return bool |
||
77 | */ |
||
78 | public function isTypeEqualsTo($typeToCheck) |
||
82 | } |
||
83 |