_propDict)) { if (is_a($this->_propDict["resource"], "\Beta\Microsoft\Graph\Model\EducationResource") || is_null($this->_propDict["resource"])) { return $this->_propDict["resource"]; } else { $this->_propDict["resource"] = new EducationResource($this->_propDict["resource"]); return $this->_propDict["resource"]; } } return null; } /** * Sets the resource * Resource object that has been associated with this module. * * @param EducationResource $val The resource * * @return EducationModuleResource */ public function setResource($val) { $this->_propDict["resource"] = $val; return $this; } }