init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
12
vendor/phpunit/php-token-stream/src/Abstract.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Abstract.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_ABSTRACT extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Ampersand.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Ampersand.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_AMPERSAND extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/AndEqual.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/AndEqual.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_AND_EQUAL extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Array.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Array.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_ARRAY extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/ArrayCast.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/ArrayCast.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_ARRAY_CAST extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/As.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/As.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_AS extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/At.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/At.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_AT extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Backtick.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Backtick.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_BACKTICK extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/BadCharacter.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/BadCharacter.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_BAD_CHARACTER extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/BoolCast.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/BoolCast.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_BOOL_CAST extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/BooleanAnd.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/BooleanAnd.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_BOOLEAN_AND extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/BooleanOr.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/BooleanOr.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_BOOLEAN_OR extends PHP_Token
|
||||
{
|
||||
}
|
||||
42
vendor/phpunit/php-token-stream/src/CachingFactory.php
vendored
Normal file
42
vendor/phpunit/php-token-stream/src/CachingFactory.php
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_Stream_CachingFactory
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected static $cache = [];
|
||||
|
||||
/**
|
||||
* @param string $filename
|
||||
*
|
||||
* @return PHP_Token_Stream
|
||||
*/
|
||||
public static function get($filename)
|
||||
{
|
||||
if (!isset(self::$cache[$filename])) {
|
||||
self::$cache[$filename] = new PHP_Token_Stream($filename);
|
||||
}
|
||||
|
||||
return self::$cache[$filename];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $filename
|
||||
*/
|
||||
public static function clear($filename = null)/*: void*/
|
||||
{
|
||||
if (\is_string($filename)) {
|
||||
unset(self::$cache[$filename]);
|
||||
} else {
|
||||
self::$cache = [];
|
||||
}
|
||||
}
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Callable.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Callable.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CALLABLE extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Caret.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Caret.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CARET extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Case.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Case.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CASE extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Catch.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Catch.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CATCH extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Character.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Character.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CHARACTER extends PHP_Token
|
||||
{
|
||||
}
|
||||
62
vendor/phpunit/php-token-stream/src/Class.php
vendored
Normal file
62
vendor/phpunit/php-token-stream/src/Class.php
vendored
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CLASS extends PHP_Token_INTERFACE
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $anonymous = false;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
if ($this->name !== null) {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
$next = $this->tokenStream[$this->id + 1];
|
||||
|
||||
if ($next instanceof PHP_Token_WHITESPACE) {
|
||||
$next = $this->tokenStream[$this->id + 2];
|
||||
}
|
||||
|
||||
if ($next instanceof PHP_Token_STRING) {
|
||||
$this->name =(string) $next;
|
||||
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
if ($next instanceof PHP_Token_OPEN_CURLY ||
|
||||
$next instanceof PHP_Token_EXTENDS ||
|
||||
$next instanceof PHP_Token_IMPLEMENTS) {
|
||||
$this->name = \sprintf(
|
||||
'AnonymousClass:%s#%s',
|
||||
$this->getLine(),
|
||||
$this->getId()
|
||||
);
|
||||
|
||||
$this->anonymous = true;
|
||||
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
|
||||
public function isAnonymous()
|
||||
{
|
||||
return $this->anonymous;
|
||||
}
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/ClassC.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/ClassC.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CLASS_C extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/ClassNameConstant.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/ClassNameConstant.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CLASS_NAME_CONSTANT extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Clone.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Clone.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CLONE extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/CloseBracket.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/CloseBracket.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CLOSE_BRACKET extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/CloseCurly.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/CloseCurly.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CLOSE_CURLY extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/CloseSquare.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/CloseSquare.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CLOSE_SQUARE extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/CloseTag.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/CloseTag.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CLOSE_TAG extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Coalesce.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Coalesce.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_COALESCE extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/CoalesceEqual.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/CoalesceEqual.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_COALESCE_EQUAL extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Colon.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Colon.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_COLON extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Comma.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Comma.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_COMMA extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Comment.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Comment.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_COMMENT extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/ConcatEqual.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/ConcatEqual.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CONCAT_EQUAL extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Const.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Const.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CONST extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/ConstantEncapsedString.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/ConstantEncapsedString.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CONSTANT_ENCAPSED_STRING extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Continue.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Continue.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CONTINUE extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/CurlyOpen.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/CurlyOpen.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_CURLY_OPEN extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/DNumber.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/DNumber.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DNUMBER extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Dec.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Dec.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DEC extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Declare.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Declare.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DECLARE extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Default.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Default.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DEFAULT extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Dir.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Dir.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DIR extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Div.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Div.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DIV extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/DivEqual.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/DivEqual.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DIV_EQUAL extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Do.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Do.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DO extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/DocComment.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/DocComment.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DOC_COMMENT extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Dollar.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Dollar.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DOLLAR extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/DollarOpenCurlyBraces.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/DollarOpenCurlyBraces.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DOLLAR_OPEN_CURLY_BRACES extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Dot.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Dot.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DOT extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/DoubleArrow.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/DoubleArrow.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DOUBLE_ARROW extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/DoubleCast.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/DoubleCast.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DOUBLE_CAST extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/DoubleColon.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/DoubleColon.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DOUBLE_COLON extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/DoubleQuotes.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/DoubleQuotes.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_DOUBLE_QUOTES extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Echo.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Echo.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_ECHO extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Ellipsis.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Ellipsis.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_ELLIPSIS extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Else.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Else.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_ELSE extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Elseif.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Elseif.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_ELSEIF extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Empty.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Empty.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_EMPTY extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/EncapsedAndWhitespace.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/EncapsedAndWhitespace.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_ENCAPSED_AND_WHITESPACE extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/EndHeredoc.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/EndHeredoc.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_END_HEREDOC extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Enddeclare.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Enddeclare.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_ENDDECLARE extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Endfor.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Endfor.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_ENDFOR extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Endforeach.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Endforeach.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_ENDFOREACH extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Endif.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Endif.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_ENDIF extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Endswitch.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Endswitch.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_ENDSWITCH extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Endwhile.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Endwhile.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_ENDWHILE extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Equal.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Equal.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_EQUAL extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Eval.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Eval.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_EVAL extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/ExclamationMark.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/ExclamationMark.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_EXCLAMATION_MARK extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Exit.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Exit.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_EXIT extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Extends.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Extends.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_EXTENDS extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/File.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/File.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_FILE extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Final.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Final.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_FINAL extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Finally.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Finally.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_FINALLY extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Fn.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Fn.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_FN extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/For.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/For.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_FOR extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Foreach.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Foreach.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_FOREACH extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/FuncC.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/FuncC.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_FUNC_C extends PHP_Token
|
||||
{
|
||||
}
|
||||
196
vendor/phpunit/php-token-stream/src/Function.php
vendored
Normal file
196
vendor/phpunit/php-token-stream/src/Function.php
vendored
Normal file
|
|
@ -0,0 +1,196 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_FUNCTION extends PHP_TokenWithScopeAndVisibility
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $arguments;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $ccn;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $name;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $signature;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $anonymous = false;
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getArguments()
|
||||
{
|
||||
if ($this->arguments !== null) {
|
||||
return $this->arguments;
|
||||
}
|
||||
|
||||
$this->arguments = [];
|
||||
$tokens = $this->tokenStream->tokens();
|
||||
$typeDeclaration = null;
|
||||
|
||||
// Search for first token inside brackets
|
||||
$i = $this->id + 2;
|
||||
|
||||
while (!$tokens[$i - 1] instanceof PHP_Token_OPEN_BRACKET) {
|
||||
$i++;
|
||||
}
|
||||
|
||||
while (!$tokens[$i] instanceof PHP_Token_CLOSE_BRACKET) {
|
||||
if ($tokens[$i] instanceof PHP_Token_STRING) {
|
||||
$typeDeclaration = (string) $tokens[$i];
|
||||
} elseif ($tokens[$i] instanceof PHP_Token_VARIABLE) {
|
||||
$this->arguments[(string) $tokens[$i]] = $typeDeclaration;
|
||||
$typeDeclaration = null;
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
return $this->arguments;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
if ($this->name !== null) {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
$tokens = $this->tokenStream->tokens();
|
||||
|
||||
$i = $this->id + 1;
|
||||
|
||||
if ($tokens[$i] instanceof PHP_Token_WHITESPACE) {
|
||||
$i++;
|
||||
}
|
||||
|
||||
if ($tokens[$i] instanceof PHP_Token_AMPERSAND) {
|
||||
$i++;
|
||||
}
|
||||
|
||||
if ($tokens[$i + 1] instanceof PHP_Token_OPEN_BRACKET) {
|
||||
$this->name = (string) $tokens[$i];
|
||||
} elseif ($tokens[$i + 1] instanceof PHP_Token_WHITESPACE && $tokens[$i + 2] instanceof PHP_Token_OPEN_BRACKET) {
|
||||
$this->name = (string) $tokens[$i];
|
||||
} else {
|
||||
$this->anonymous = true;
|
||||
|
||||
$this->name = \sprintf(
|
||||
'anonymousFunction:%s#%s',
|
||||
$this->getLine(),
|
||||
$this->getId()
|
||||
);
|
||||
}
|
||||
|
||||
if (!$this->isAnonymous()) {
|
||||
for ($i = $this->id; $i; --$i) {
|
||||
if ($tokens[$i] instanceof PHP_Token_NAMESPACE) {
|
||||
$this->name = $tokens[$i]->getName() . '\\' . $this->name;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
if ($tokens[$i] instanceof PHP_Token_INTERFACE) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getCCN()
|
||||
{
|
||||
if ($this->ccn !== null) {
|
||||
return $this->ccn;
|
||||
}
|
||||
|
||||
$this->ccn = 1;
|
||||
$end = $this->getEndTokenId();
|
||||
$tokens = $this->tokenStream->tokens();
|
||||
|
||||
for ($i = $this->id; $i <= $end; $i++) {
|
||||
switch (\get_class($tokens[$i])) {
|
||||
case PHP_Token_IF::class:
|
||||
case PHP_Token_ELSEIF::class:
|
||||
case PHP_Token_FOR::class:
|
||||
case PHP_Token_FOREACH::class:
|
||||
case PHP_Token_WHILE::class:
|
||||
case PHP_Token_CASE::class:
|
||||
case PHP_Token_CATCH::class:
|
||||
case PHP_Token_BOOLEAN_AND::class:
|
||||
case PHP_Token_LOGICAL_AND::class:
|
||||
case PHP_Token_BOOLEAN_OR::class:
|
||||
case PHP_Token_LOGICAL_OR::class:
|
||||
case PHP_Token_QUESTION_MARK::class:
|
||||
$this->ccn++;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return $this->ccn;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSignature()
|
||||
{
|
||||
if ($this->signature !== null) {
|
||||
return $this->signature;
|
||||
}
|
||||
|
||||
if ($this->isAnonymous()) {
|
||||
$this->signature = 'anonymousFunction';
|
||||
$i = $this->id + 1;
|
||||
} else {
|
||||
$this->signature = '';
|
||||
$i = $this->id + 2;
|
||||
}
|
||||
|
||||
$tokens = $this->tokenStream->tokens();
|
||||
|
||||
while (isset($tokens[$i]) &&
|
||||
!$tokens[$i] instanceof PHP_Token_OPEN_CURLY &&
|
||||
!$tokens[$i] instanceof PHP_Token_SEMICOLON) {
|
||||
$this->signature .= $tokens[$i++];
|
||||
}
|
||||
|
||||
$this->signature = \trim($this->signature);
|
||||
|
||||
return $this->signature;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isAnonymous()
|
||||
{
|
||||
return $this->anonymous;
|
||||
}
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Global.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Global.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_GLOBAL extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Goto.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Goto.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_GOTO extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Gt.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Gt.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_GT extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/HaltCompiler.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/HaltCompiler.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_HALT_COMPILER extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/If.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/If.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_IF extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Implements.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Implements.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_IMPLEMENTS extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Inc.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Inc.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_INC extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Include.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Include.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_INCLUDE extends PHP_Token_Includes
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/IncludeOnce.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/IncludeOnce.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_INCLUDE_ONCE extends PHP_Token_Includes
|
||||
{
|
||||
}
|
||||
57
vendor/phpunit/php-token-stream/src/Includes.php
vendored
Normal file
57
vendor/phpunit/php-token-stream/src/Includes.php
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
abstract class PHP_Token_Includes extends PHP_Token
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $name;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $type;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
if ($this->name === null) {
|
||||
$this->process();
|
||||
}
|
||||
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
if ($this->type === null) {
|
||||
$this->process();
|
||||
}
|
||||
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
private function process(): void
|
||||
{
|
||||
$tokens = $this->tokenStream->tokens();
|
||||
|
||||
if ($tokens[$this->id + 2] instanceof PHP_Token_CONSTANT_ENCAPSED_STRING) {
|
||||
$this->name = \trim((string) $tokens[$this->id + 2], "'\"");
|
||||
$this->type = \strtolower(
|
||||
\str_replace('PHP_Token_', '', PHP_Token_Util::getClass($tokens[$this->id]))
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/InlineHtml.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/InlineHtml.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_INLINE_HTML extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Instanceof.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Instanceof.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_INSTANCEOF extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Insteadof.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Insteadof.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_INSTEADOF extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/IntCast.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/IntCast.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_INT_CAST extends PHP_Token
|
||||
{
|
||||
}
|
||||
166
vendor/phpunit/php-token-stream/src/Interface.php
vendored
Normal file
166
vendor/phpunit/php-token-stream/src/Interface.php
vendored
Normal file
|
|
@ -0,0 +1,166 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_INTERFACE extends PHP_TokenWithScopeAndVisibility
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $interfaces;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return (string) $this->tokenStream[$this->id + 2];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function hasParent()
|
||||
{
|
||||
return $this->tokenStream[$this->id + 4] instanceof PHP_Token_EXTENDS;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getPackage()
|
||||
{
|
||||
$result = [
|
||||
'namespace' => '',
|
||||
'fullPackage' => '',
|
||||
'category' => '',
|
||||
'package' => '',
|
||||
'subpackage' => '',
|
||||
];
|
||||
|
||||
$docComment = $this->getDocblock();
|
||||
$className = $this->getName();
|
||||
|
||||
for ($i = $this->id; $i; --$i) {
|
||||
if ($this->tokenStream[$i] instanceof PHP_Token_NAMESPACE) {
|
||||
$result['namespace'] = $this->tokenStream[$i]->getName();
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($docComment === null) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
if (\preg_match('/@category[\s]+([\.\w]+)/', $docComment, $matches)) {
|
||||
$result['category'] = $matches[1];
|
||||
}
|
||||
|
||||
if (\preg_match('/@package[\s]+([\.\w]+)/', $docComment, $matches)) {
|
||||
$result['package'] = $matches[1];
|
||||
$result['fullPackage'] = $matches[1];
|
||||
}
|
||||
|
||||
if (\preg_match('/@subpackage[\s]+([\.\w]+)/', $docComment, $matches)) {
|
||||
$result['subpackage'] = $matches[1];
|
||||
$result['fullPackage'] .= '.' . $matches[1];
|
||||
}
|
||||
|
||||
if (empty($result['fullPackage'])) {
|
||||
$result['fullPackage'] = $this->arrayToName(
|
||||
\explode('_', \str_replace('\\', '_', $className)),
|
||||
'.'
|
||||
);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool|string
|
||||
*/
|
||||
public function getParent()
|
||||
{
|
||||
if (!$this->hasParent()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$i = $this->id + 6;
|
||||
$tokens = $this->tokenStream->tokens();
|
||||
$className = (string) $tokens[$i];
|
||||
|
||||
while (isset($tokens[$i + 1]) &&
|
||||
!$tokens[$i + 1] instanceof PHP_Token_WHITESPACE) {
|
||||
$className .= (string) $tokens[++$i];
|
||||
}
|
||||
|
||||
return $className;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function hasInterfaces()
|
||||
{
|
||||
return (isset($this->tokenStream[$this->id + 4]) &&
|
||||
$this->tokenStream[$this->id + 4] instanceof PHP_Token_IMPLEMENTS) ||
|
||||
(isset($this->tokenStream[$this->id + 8]) &&
|
||||
$this->tokenStream[$this->id + 8] instanceof PHP_Token_IMPLEMENTS);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array|bool
|
||||
*/
|
||||
public function getInterfaces()
|
||||
{
|
||||
if ($this->interfaces !== null) {
|
||||
return $this->interfaces;
|
||||
}
|
||||
|
||||
if (!$this->hasInterfaces()) {
|
||||
return $this->interfaces = false;
|
||||
}
|
||||
|
||||
if ($this->tokenStream[$this->id + 4] instanceof PHP_Token_IMPLEMENTS) {
|
||||
$i = $this->id + 3;
|
||||
} else {
|
||||
$i = $this->id + 7;
|
||||
}
|
||||
|
||||
$tokens = $this->tokenStream->tokens();
|
||||
|
||||
while (!$tokens[$i + 1] instanceof PHP_Token_OPEN_CURLY) {
|
||||
$i++;
|
||||
|
||||
if ($tokens[$i] instanceof PHP_Token_STRING) {
|
||||
$this->interfaces[] = (string) $tokens[$i];
|
||||
}
|
||||
}
|
||||
|
||||
return $this->interfaces;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $join
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function arrayToName(array $parts, $join = '\\')
|
||||
{
|
||||
$result = '';
|
||||
|
||||
if (\count($parts) > 1) {
|
||||
\array_pop($parts);
|
||||
|
||||
$result = \implode($join, $parts);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/IsEqual.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/IsEqual.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_IS_EQUAL extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/IsGreaterOrEqual.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/IsGreaterOrEqual.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_IS_GREATER_OR_EQUAL extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/IsIdentical.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/IsIdentical.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_IS_IDENTICAL extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/IsNotEqual.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/IsNotEqual.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_IS_NOT_EQUAL extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/IsNotIdentical.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/IsNotIdentical.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_IS_NOT_IDENTICAL extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/IsSmallerOrEqual.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/IsSmallerOrEqual.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_IS_SMALLER_OR_EQUAL extends PHP_Token
|
||||
{
|
||||
}
|
||||
12
vendor/phpunit/php-token-stream/src/Isset.php
vendored
Normal file
12
vendor/phpunit/php-token-stream/src/Isset.php
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of phpunit/php-token-stream.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
class PHP_Token_ISSET extends PHP_Token
|
||||
{
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue