Scalr\Model\Entity\Role::getOs PHP Méthode

getOs() public méthode

Gets the Os entity which corresponds to the Role
public getOs ( ) : Os
Résultat Os Returns the Os entity which corresponds to the Role. If OS has not been defined it will return NULL.
    public function getOs()
    {
        if (!$this->_os) {
            $this->_os = Os::findPk($this->osId);
        }
        return $this->_os;
    }