public static function createRole($name, AVACL $acl)
    {
        $role = AVObject::create(static::$avClassName);
        $role->setName($name);
        $role->setACL($acl);

        return $role;
    }
public static function createRole($name, AVACL $acl)
    {
        $role = AVObject::create(static::$avClassName);
        $role->setName($name);
        $role->setACL($acl);

        return $role;
    }
public static function createRole ( $ name , AVACL $ acl ) { $ role = AVObject :: create ( static :: $ avClassName ) ; $ role -> setName ( $ name ) ; $ role -> setACL ( $ acl ) ; return $ role ; }
Create a AVRole object with a given name and ACL.

@param string $name
@param AVACL $acl

@return AVRole
Create a AVRole object with a given name and ACL .