src/Kunstmaan/AdminBundle/Helper/Security/Acl/Permission/PermissionDefinition.php
public function setPermissions(array $permissions)
    {
        if (!is_array($permissions) || empty($permissions)) {
            throw new InvalidArgumentException('You have to provide at least one permission!');
        }
        $this->permissions = $permissions;
    }
public function setPermissions(array $permissions)
    {
        if (!is_array($permissions) || empty($permissions)) {
            throw new InvalidArgumentException('You have to provide at least one permission!');
        }
        $this->permissions = $permissions;
    }
public function setPermissions ( array $ permissions ) { if ( ! is_array ( $ permissions ) || empty ( $ permissions ) ) { throw new InvalidArgumentException ( 'You have to provide at least one permission!' ) ; } $ this -> permissions = $ permissions ; }
Set permissions.

@param array $permissions

@throws InvalidArgumentException
Set permissions .