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

public usesTtrait ( $name ) : boolean
$name
Результат boolean
Пример #1
0
 private function getTraitUse($traitName)
 {
     if (!$this->unit->usesTtrait($traitName)) {
         throw new ParseErrorException(sprintf('Referenced trait "%s" not used', $traitName), ParseErrorException::GeneralParseError);
     }
     return $this->unit->getTraitUse($traitName);
 }