1 | <?php |
||
2 | declare(strict_types=1); |
||
3 | |||
4 | namespace Gewaer\Models; |
||
5 | |||
6 | class RolesInherits extends AbstractModel |
||
7 | { |
||
8 | /** |
||
9 | * |
||
10 | * @var integer |
||
11 | */ |
||
12 | public $roles_id; |
||
13 | |||
14 | /** |
||
15 | * |
||
16 | * @var integer |
||
17 | */ |
||
18 | public $roles_inherit; |
||
19 | |||
20 | /** |
||
21 | * Initialize method for model. |
||
22 | */ |
||
23 | public function initialize() |
||
24 | { |
||
25 | $this->setSource('roles_inherits'); |
||
26 | |||
27 | $this->belonsTo( |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
28 | 'roles_id', |
||
29 | 'Gewaer\Models\Roles', |
||
30 | 'id', |
||
31 | ['alias' => 'role'] |
||
32 | ); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Returns table name mapped in the model. |
||
37 | * |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getSource(): string |
||
41 | { |
||
42 | return 'roles_inherits'; |
||
43 | } |
||
44 | } |
||
45 |