Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
WriteOnlyPermission | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getPermissionIdentifiers | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | namespace Apie\Core\Permissions; |
3 | |
4 | use Apie\Core\Identifiers\Identifier; |
5 | use Apie\Core\Lists\PermissionList; |
6 | |
7 | final class WriteOnlyPermission 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 . ':write']); |
16 | } |
17 | } |