getTraitUse() public method

public getTraitUse ( $name ) : TheSeer\phpDox\Collector\TraitUseObject
$name
return TheSeer\phpDox\Collector\TraitUseObject
Example #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);
 }