entity; switch ($name) { case 'owner': $owner = $shared->getOwner(); return $owner !== null ? new IdentitySetProxy($this->graph, $owner) : null; case 'scope': return $shared->getScope(); case 'sharedBy': $sharedBy = $shared->getSharedBy(); return $sharedBy !== null ? new IdentitySetProxy($this->graph, $sharedBy) : null; case 'sharedDateTime': return $shared->getSharedDateTime(); default: return parent::__get($name); } } }