Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
86 | 4 | public static function exist(Resources $resource, string $accessName) : int |
|
87 | { |
||
88 | 4 | return self::count([ |
|
89 | 4 | 'conditions' => 'resources_id = ?0 AND access_name = ?1 AND apps_id = ?2', |
|
90 | 4 | 'bind' => [$resource->getId(), $accessName, Di::getDefault()->getAcl()->getApp()->getId()] |
|
91 | ]); |
||
94 |