Total Complexity | 3 |
Total Lines | 81 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class ResourcesAccesses extends AbstractModel |
||
11 | { |
||
12 | /** |
||
13 | * |
||
14 | * @var integer |
||
15 | */ |
||
16 | public $resources_id; |
||
17 | |||
18 | /** |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | public $resources_name; |
||
23 | |||
24 | /** |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | public $access_name; |
||
29 | |||
30 | /** |
||
31 | * |
||
32 | * @var integer |
||
33 | */ |
||
34 | public $apps_id; |
||
35 | |||
36 | /** |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | public $created_at; |
||
41 | |||
42 | /** |
||
43 | * |
||
44 | * @var string |
||
45 | */ |
||
46 | public $updated_at; |
||
47 | |||
48 | /** |
||
49 | * |
||
50 | * @var integer |
||
51 | */ |
||
52 | public $is_deleted; |
||
53 | |||
54 | /** |
||
55 | * Initialize method for model. |
||
56 | */ |
||
57 | 4 | public function initialize() |
|
66 | ); |
||
67 | 4 | } |
|
68 | |||
69 | /** |
||
70 | * Returns table name mapped in the model. |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | 2 | public function getSource(): string |
|
77 | } |
||
78 | |||
79 | /** |
||
80 | * Check if it exist |
||
81 | * |
||
82 | * @param Resources $resouce |
||
83 | * @param string $accessName |
||
84 | * @return integer |
||
85 | */ |
||
86 | 4 | public static function exist(Resources $resource, string $accessName) : int |
|
94 |