entity; /** * @todo Support all properties. */ switch ($name) { case 'link': $link = $permission->getLink(); return $link !== null ? new SharingLinkProxy($this->graph, $link) : null; default: return parent::__get($name); } } }