public function __get($property) { if (isset($this->services[$property])) { return $this->services[$property]; } return $this->services[$property] = $this->createService($property); }