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