Total Complexity | 1 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class User extends Model |
||
15 | { |
||
16 | /** |
||
17 | * @var int |
||
18 | * @Primary |
||
19 | * @Identity |
||
20 | * @Column(type="integer", length=10, nullable=false) |
||
21 | */ |
||
22 | public $id; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | * @Column(type="string", length=127, nullable=false) |
||
27 | */ |
||
28 | public $name; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | * @Column(type="string", length=127, nullable=false) |
||
33 | */ |
||
34 | public $email; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | * @Column(type="string", length=19, column="created_at") |
||
39 | */ |
||
40 | public $createdAt; |
||
41 | |||
42 | public function getSource(): string |
||
43 | { |
||
44 | return 'users'; |
||
45 | } |
||
47 |