getType() public method

Get the AceType.
public getType ( ) : AceType | null
return AceType | null
示例#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()));
     }
 }