LdapTools\Security\Acl\Acl::validateAce PHP Method

validateAce() protected method

protected validateAce ( Ace $ace )
$ace LdapTools\Security\Ace\Ace
    protected function validateAce(Ace $ace)
    {
        $type = array_search($ace->getType()->getValue(), AceType::TYPE);
        if (substr($type, 0, strlen($this->getAllowedAceType())) !== $this->getAllowedAceType()) {
            throw new InvalidArgumentException(sprintf('The Ace type with short name "%s" is not allowed in a %sacl.', $ace->getType()->getShortName(), $this->getSddlIdentifier()));
        }
    }