for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PhpUnitGen\Parser\NodeParser;
use PhpParser\Node;
/**
* Class PhpFileNodeParser.
*
* @author Paul Thébaud <[email protected]>.
* @copyright 2017-2018 Paul Thébaud <[email protected]>.
* @license https://opensource.org/licenses/MIT The MIT license.
* @link https://github.com/paul-thebaud/phpunit-generator
* @since Class available since Release 2.0.0.
*/
class PhpFileNodeParser extends AbstractNodeParser
{
public function __construct(
NamespaceNodeParser $namespaceNodeParser,
UseNodeParser $useNodeParser,
TraitNodeParser $traitNodeParser
) {
$this->nodeParsers[Node\Stmt\Namespace_::class] = $namespaceNodeParser;
$this->nodeParsers[Node\Stmt\Use_::class] = $useNodeParser;
$this->nodeParsers[Node\Stmt\Trait_::class] = $traitNodeParser;
/** @todo */
}