1 | <?php |
||
43 | class User extends Entity |
||
44 | { |
||
45 | |||
46 | /** |
||
47 | * List of computed or virtual fields that **should** be included in JSON or array |
||
48 | * representations of this Entity. If a field is present in both _hidden and _virtual |
||
49 | * the field will **not** be in the array/json versions of the entity. |
||
50 | * |
||
51 | * @var array |
||
52 | */ |
||
53 | protected $_virtual = [ |
||
54 | 'activation_url' |
||
55 | ]; |
||
56 | |||
57 | /** |
||
58 | * Set virtual field activation_url. |
||
59 | * |
||
60 | * @return string |
||
61 | */ |
||
62 | protected function _getActivationUrl() |
||
66 | |||
67 | /** |
||
68 | * Setup password. |
||
69 | * |
||
70 | * @param string $password |
||
71 | * @return null|string |
||
72 | */ |
||
73 | protected function _setPassword($password) |
||
81 | } |
||
82 |