/** * @return User */ public function getUser() { if (!$this->user instanceof User) { $this->user = User::fromApiData($this->_client, $this->getOrLoad('user')); } return $this->user; }
protected function createObject(array $item) { return User::fromApiData($this->client, $item); }