/** * Constructor * * @param string $date * @param array $data * @param int $year * @param int $month display month, it can differ from a month in date */ public function __construct($date, $data, $year, $month) { parent::__construct($date); $this->_data = $data; $this->_year = $year; $this->_displayMonth = $month; }