1 | <?php |
||
19 | class User extends BaseUser implements JsonSerializable |
||
20 | { |
||
21 | /** |
||
22 | * @ORM\Id |
||
23 | * @ORM\Column(type="integer") |
||
24 | * @ORM\GeneratedValue(strategy="AUTO") |
||
25 | */ |
||
26 | protected $id; |
||
27 | |||
28 | public function __construct() |
||
33 | |||
34 | /** |
||
35 | * Specify data which should be serialized to JSON |
||
36 | * |
||
37 | * @see http://php.net/manual/en/jsonserializable.jsonserialize.php |
||
38 | * |
||
39 | * @return mixed data which can be serialized by <b>json_encode</b>, |
||
40 | * which is a value of any type other than a resource |
||
41 | * |
||
42 | * @since 5.4.0 |
||
43 | */ |
||
44 | public function jsonSerialize() |
||
52 | } |
||
53 |