1 | <?php |
||
2 | use Erykai\Database\Users; |
||
3 | require "test/config.php"; |
||
4 | require "vendor/autoload.php"; |
||
5 | |||
6 | $user = new Users(); |
||
7 | $user->name = "Alex de Oliveira Vidal"; |
||
0 ignored issues
–
show
Bug
Best Practice
introduced
by
![]() |
|||
8 | $user->email = "[email protected]"; |
||
0 ignored issues
–
show
The property
email does not exist on Erykai\Database\Users . Since you implemented __set , consider adding a @property annotation.
![]() |
|||
9 | $user->password = "102asda030"; |
||
0 ignored issues
–
show
The property
password does not exist on Erykai\Database\Users . Since you implemented __set , consider adding a @property annotation.
![]() |
|||
10 | $user->age = 10; |
||
0 ignored issues
–
show
The property
age does not exist on Erykai\Database\Users . Since you implemented __set , consider adding a @property annotation.
![]() |
|||
11 | $user->save(); |
||
12 | var_dump($user->response(), $user->data()); |
||
13 |