You may optionally specify a source locator that will be used to locate
the traits. If no source locator is given, a default will be used.
public getTraits ( ) : |
||
return |
/** * {@inheritDoc} */ public function getTraits() { $traits = $this->betterReflectionClass->getTraits(); $wrappedTraits = []; foreach ($traits as $key => $trait) { $wrappedTraits[$key] = new self($trait); } return $wrappedTraits; }