public function setName($name)
    {
        if ($this->getObjectId())
        {
            throw new AVException("A role's name can only be set before it has been saved.");
        }
        if (!is_string($name))
        {
            throw new AVException("A role's name must be a string.");
        }

        return $this->set("name", $name);
    }
public function setName($name)
    {
        if ($this->getObjectId())
        {
            throw new AVException("A role's name can only be set before it has been saved.");
        }
        if (!is_string($name))
        {
            throw new AVException("A role's name must be a string.");
        }

        return $this->set("name", $name);
    }
public function setName ( $ name ) { if ( $ this -> getObjectId ( ) ) { throw new AVException ( "A role's name can only be set before it has been saved." ) ; } if ( ! is_string ( $ name ) ) { throw new AVException ( "A role's name must be a string." ) ; } return $ this -> set ( "name" , $ name ) ; }
Sets the role name.

@param string $name The role name

@return null
Sets the role name .