1 | <?php |
||
11 | class Client extends BaseClient |
||
12 | { |
||
13 | /** |
||
14 | * @ORM\Id |
||
15 | * @ORM\Column(type="integer") |
||
16 | * @ORM\GeneratedValue(strategy="AUTO") |
||
17 | */ |
||
18 | protected $id; |
||
19 | |||
20 | /** |
||
21 | * @ORM\Column(type="string") |
||
22 | */ |
||
23 | public $type; |
||
24 | |||
25 | /** |
||
26 | * @ORM\Column(type="json_array", nullable=true) |
||
27 | */ |
||
28 | public $meta; |
||
29 | |||
30 | public function __construct() |
||
34 | |||
35 | public function setType($type) |
||
41 | |||
42 | public function getType() |
||
46 | |||
47 | public function setMeta($meta) |
||
53 | |||
54 | public function getMeta() |
||
58 | |||
59 | /** |
||
60 | * Check if the given client type is the same as the current user. |
||
61 | * |
||
62 | * @param string $typeToCheck client type to check |
||
63 | * |
||
64 | * @return bool |
||
65 | */ |
||
66 | public function isTypeEqualsTo($typeToCheck) |
||
70 | } |
||
71 |