protected function PHP_Token_INTERFACE::arrayToName

1 call to PHP_Token_INTERFACE::arrayToName()
PHP_Token_INTERFACE::getPackage in drupal/core/vendor/phpunit/php-token-stream/PHP/Token.php

File

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

Class

PHP_Token_INTERFACE

Code

protected function arrayToName(array $parts, $join = '\\') {
  $result = '';
  if (count($parts) > 1) {
    array_pop($parts);
    $result = join($join, $parts);
  }
  return $result;
}