LdapTools\Security\Ace\Ace::getType PHP Метод

getType() публичный Метод

Get the AceType.
public getType ( ) : AceType | null
Результат AceType | null
    public function getType()
    {
        return $this->type;
    }

Usage Example

Пример #1
0
 /**
  * @param 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()));
     }
 }