_propDict)) { if (is_a($this->_propDict["application"], "\Microsoft\Graph\Model\Application") || is_null($this->_propDict["application"])) { return $this->_propDict["application"]; } else { $this->_propDict["application"] = new Application($this->_propDict["application"]); return $this->_propDict["application"]; } } return null; } /** * Sets the application * * @param Application $val The value to assign to the application * * @return ApplicationServicePrincipal The ApplicationServicePrincipal */ public function setApplication($val) { $this->_propDict["application"] = $val; return $this; } /** * Gets the servicePrincipal * * @return ServicePrincipal|null The servicePrincipal */ public function getServicePrincipal() { if (array_key_exists("servicePrincipal", $this->_propDict)) { if (is_a($this->_propDict["servicePrincipal"], "\Microsoft\Graph\Model\ServicePrincipal") || is_null($this->_propDict["servicePrincipal"])) { return $this->_propDict["servicePrincipal"]; } else { $this->_propDict["servicePrincipal"] = new ServicePrincipal($this->_propDict["servicePrincipal"]); return $this->_propDict["servicePrincipal"]; } } return null; } /** * Sets the servicePrincipal * * @param ServicePrincipal $val The value to assign to the servicePrincipal * * @return ApplicationServicePrincipal The ApplicationServicePrincipal */ public function setServicePrincipal($val) { $this->_propDict["servicePrincipal"] = $val; return $this; } }