public function getDateParser() { if ($this->dateParser === null) { return new DateParser($this->config); } return $this->dateParser; }