hnrazevedo /
Datamanager
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Model; |
||
| 4 | |||
| 5 | use HnrAzevedo\Datamanager\Model as Entity; |
||
| 6 | /** |
||
| 7 | * @property string $name |
||
| 8 | * @property string $email |
||
| 9 | * @property string $password |
||
| 10 | * @property string birth |
||
| 11 | * @property string register |
||
| 12 | * @property string $birth |
||
| 13 | * @property string $register |
||
| 14 | * @property string $weight |
||
| 15 | */ |
||
| 16 | class User extends Entity |
||
| 17 | { |
||
| 18 | public function __construct() |
||
| 19 | { |
||
| 20 | $this->fields = [ |
||
| 21 | 'email'=>'Email', |
||
| 22 | 'username'=>'Nome de usuário' |
||
| 23 | 'email' => 'Email', |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 24 | 'username' => 'Nome de usuário', |
||
| 25 | 'weight' => 'Peso' |
||
| 26 | ]; |
||
| 27 | /** |
||
| 28 | * @param string Table name |
||
| 29 | * @param string Primary key column |
||
| 30 | */ |
||
| 31 | parent::create('user', 'id'); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |