Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| RolePermission | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| addConditionRoleId | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace BO\Zmsdb\Query; |
| 4 | |
| 5 | class RolePermission extends Base |
| 6 | { |
| 7 | /** |
| 8 | * @var string TABLE mysql table reference |
| 9 | */ |
| 10 | const TABLE = 'role_permission'; |
| 11 | |
| 12 | public function addConditionRoleId(int $roleId): self |
| 13 | { |
| 14 | $this->query->where('role_id', '=', $roleId); |
| 15 | return $this; |
| 16 | } |
| 17 | } |