public function getQuarterlyBudget($year) { if ($this->projectId === null) { throw new \RuntimeException(sprintf("Identifier of the project has not been initialized yet for %s", get_class($this))); } return QuarterlyBudgetEntity::getProjectBudget($year, $this->projectId); }