| Total Complexity | 3 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Users extends Orm |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * table name |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $tablename = 'users'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * table primary key |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $primary = 'id'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * database name |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $database = 'nymfonya'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * pool name |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | protected $slot = 'test'; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * instanciate |
||
| 37 | * |
||
| 38 | * @param Container $container |
||
| 39 | * @return self |
||
| 40 | */ |
||
| 41 | 4 | public function __construct(Container $container) |
|
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * find a user for a given id |
||
| 48 | * |
||
| 49 | * @param integer $uid |
||
| 50 | * @return Users |
||
| 51 | */ |
||
| 52 | 1 | public function getById(int $uid): Users |
|
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * find a user for a given email |
||
| 60 | * |
||
| 61 | * @param integer $uid |
||
| 62 | * @return Users |
||
| 63 | */ |
||
| 64 | 1 | public function getByEmail(string $email): Users |
|
| 70 |