dayElement = new Select('day'); parent::__construct($name, $options); } /** * Accepted options for DateSelect (plus the ones from MonthSelect) : * - day_attributes: HTML attributes to be rendered with the day element * * @return $this */ public function setOptions(iterable $options) { parent::setOptions($options); if (isset($this->options['day_attributes'])) { $this->setDayAttributes($this->options['day_attributes']); } return $this; } public function getDayElement(): Select { return $this->dayElement; } /** * Get both the year and month elements * * @return list