| Conditions | 5 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 51 | public function setMethods(array $aMethods): void |
||
| 52 | { |
||
| 53 | foreach(['base', 'only', 'except'] as $sKey) |
||
| 54 | { |
||
| 55 | foreach($aMethods[$sKey] ?? [] as $sMethod) |
||
| 56 | { |
||
| 57 | if(!is_string($sMethod) || !$this->validateMethod($sMethod)) |
||
| 58 | { |
||
| 59 | throw new SetupException("'$sMethod' is not a valid method name."); |
||
| 60 | } |
||
| 61 | } |
||
| 62 | } |
||
| 63 | $this->aMethods = $aMethods; |
||
| 64 | } |
||
| 75 |