entity; switch ($name) { case 'application': $application = $identitySet->getApplication(); return $application !== null ? new IdentityProxy($this->graph, $application) : null; case 'device': $device = $identitySet->getDevice(); return $device !== null ? new IdentityProxy($this->graph, $device) : null; case 'user': $user = $identitySet->getUser(); return $user !== null ? new IdentityProxy($this->graph, $user) : null; default: return parent::__get($name); } } }