| 1 | <?php |
||
| 8 | trait OptionsTrait /* implements OptionsInterface */ |
||
| 9 | { |
||
| 10 | use ProtectedValueObjectTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Check that all required options are defined, then hydrate. |
||
| 14 | * |
||
| 15 | * @param array $values |
||
| 16 | */ |
||
| 17 | 2 | public function __construct(array $values) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Ensure that all required options are included in the given values. |
||
| 30 | * |
||
| 31 | * @param array $values |
||
| 32 | * |
||
| 33 | * @return void |
||
| 34 | * |
||
| 35 | * @throws CommandException |
||
| 36 | * If any required options have not been defined. |
||
| 37 | */ |
||
| 38 | private function ensureRequired(array $values) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @inheritdoc |
||
| 53 | */ |
||
| 54 | 2 | public function valid() |
|
| 58 | |||
| 59 | /** |
||
| 60 | * @inheritdoc |
||
| 61 | */ |
||
| 62 | 2 | public function toArray() |
|
| 66 | } |
||
| 67 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.