type = $type['type'] ?? null; $this->options = $type['options'] ?? $options; } else { $this->type = $type; $this->options = $options; } } /** * Retrieve the hydrator specification * * @return array */ public function getHydratorSpecification(): array { $inputSpec = ['type' => $this->type]; if (! empty($this->options)) { $inputSpec['options'] = $this->options; } return $inputSpec; } }