Permission/PermissionRegistry.php
public function get($objectType)
    {
        do {
            if (isset($this->permissionCollections[$objectType])) {
                return $this->permissionCollections[$objectType];
            }
            $actualObjectType = $objectType;
            $objectType = get_parent_class($objectType);
        } while ($objectType !== false);

        throw new InvalidArgumentException("No permissions for type $actualObjectType found.");
    }
public function get($objectType)
    {
        do {
            if (isset($this->permissionCollections[$objectType])) {
                return $this->permissionCollections[$objectType];
            }
            $actualObjectType = $objectType;
            $objectType = get_parent_class($objectType);
        } while ($objectType !== false);

        throw new InvalidArgumentException("No permissions for type $actualObjectType found.");
    }
public function get ( $ objectType ) { do { if ( isset ( $ this -> permissionCollections [ $ objectType ] ) ) { return $ this -> permissionCollections [ $ objectType ] ; } $ actualObjectType = $ objectType ; $ objectType = get_parent_class ( $ objectType ) ; } while ( $ objectType !== false ) ; throw new InvalidArgumentException ( "No permissions for type $actualObjectType found." ) ; }
Return permissions for object type.

@param string $objectType

@throws InvalidArgumentException

@return PermissionCollection
Return permissions for object type .