public function getBranches() { if (empty($this->branches)) { $this->branches = $this->getContainer()->get(Branches::class, [['site' => $this]]); } return $this->branches; }