Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function setAccess(string $access): self |
||
34 | { |
||
35 | if ( |
||
36 | !in_array($access, [ |
||
37 | AbstractDeclaration::ACCESS_PRIVATE, |
||
38 | AbstractDeclaration::ACCESS_PROTECTED, |
||
39 | AbstractDeclaration::ACCESS_PUBLIC |
||
40 | ], true) |
||
41 | ) { |
||
42 | throw new ReactorException("Invalid declaration level '{$access}'"); |
||
43 | } |
||
44 | |||
45 | $this->access = $access; |
||
46 | |||
47 | return $this; |
||
48 | } |
||
88 |