Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| ReadOnlyPermission | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getPermissionIdentifiers | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | namespace Apie\Core\Permissions; |
| 3 | |
| 4 | use Apie\Core\Identifiers\Identifier; |
| 5 | use Apie\Core\Lists\PermissionList; |
| 6 | |
| 7 | final class ReadOnlyPermission implements PermissionInterface |
| 8 | { |
| 9 | public function __construct(private readonly Identifier $identifier) |
| 10 | { |
| 11 | } |
| 12 | |
| 13 | public function getPermissionIdentifiers(): PermissionList |
| 14 | { |
| 15 | return new PermissionList([$this->identifier . ':read']); |
| 16 | } |
| 17 | } |