| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function withExistentialModifier(string $existentialModifier) : CommandInterface |
||
| 26 | { |
||
| 27 | if (!in_array($existentialModifier, self::$validExistentialModifiers, true)) { |
||
| 28 | throw new InvalidExistentialModifierException( |
||
| 29 | sprintf('Invalid existential modifier (%s) used for the command JSON.SET', $existentialModifier) |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | $this->arguments[] = $existentialModifier; |
||
| 33 | return $this; |
||
| 34 | } |
||
| 53 |