public function PHP_Token_Stream::getTraits

@since Method available since Release 1.1.0

Return value

array

File

drupal/core/vendor/phpunit/php-token-stream/PHP/Token/Stream.php, line 286

Class

PHP_Token_Stream
A stream of PHP tokens.

Code

public function getTraits() {
  if ($this->traits !== NULL) {
    return $this->traits;
  }
  $this
    ->parse();
  return $this->traits;
}