| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | protected function setAllowedTypesAndValues(string $name, array $allowedTypes, array $allowedValues = null): self |
||
| 49 | { |
||
| 50 | $this |
||
| 51 | ->setDefined($name) |
||
| 52 | ->setAllowedTypes($name, $allowedTypes); |
||
| 53 | if (is_array($allowedValues)) { |
||
| 54 | $this->setAllowedValues($name, $allowedValues); |
||
| 55 | } |
||
| 56 | |||
| 57 | return $this; |
||
| 58 | } |
||
| 59 | } |
||
| 60 |