public function __construct($items = []) { $this->items = $this->getArrayableItems($items); }
public function __construct(string $name, array $options = []) { parent::__construct(); $this->name = $name; $this->caption = $options['caption'] ?? $name; $this->priority = $options['priority'] ?? $this->priority; }