1 | <?php |
||
34 | class User extends BaseUser implements AdvancedUserInterface |
||
35 | { |
||
36 | /** |
||
37 | * @ORM\Column(type="integer") |
||
38 | * @ORM\Id |
||
39 | * @ORM\GeneratedValue(strategy="AUTO") |
||
40 | */ |
||
41 | protected $id; |
||
42 | |||
43 | /** |
||
44 | * @ORM\Column(type="string", nullable=true) |
||
45 | */ |
||
46 | protected $phoneNumber = null; |
||
47 | |||
48 | 30 | public function __construct() |
|
58 | |||
59 | 27 | public function getId() |
|
63 | |||
64 | 29 | public function getPhoneNumber() |
|
68 | |||
69 | /** |
||
70 | * TODO: problem on Symfony client side when use |
||
71 | * an already declared function name, need to |
||
72 | * investigate why. |
||
73 | * |
||
74 | * @Serializer\VirtualProperty |
||
75 | */ |
||
76 | public function getUserRoles() |
||
80 | |||
81 | 30 | public function setPhoneNumber($phoneNumber) |
|
87 | |||
88 | public function isAccountNonExpired() |
||
92 | |||
93 | public function isCredentialsNonExpired() |
||
97 | } |
||
98 |