\Pvra\Console\CommandsDirCommand

Class DirCommand

Base class to give some default options for commands that may run the parser.

Summary

Methods
Properties
Constants
No public methods found
No public properties found
WALKER_DEFAULT_NAMESPACE_ROOT
GROUP_BY_NAME
GROUP_BY_VERSION
configure()
getDefaultAnalysers()
initialize()
createFileAnalyserInstance()
createMessageLocatorInstance()
createNodeWalkerInstances()
getArrayFromFile()
execute()
renderResultCollectionByName()
renderResultCollectionByRequiredVersion()
applyIteratorFilter()
$expectedWalkers
N/A
No private methods found
No private properties found
N/A

Constants

WALKER_DEFAULT_NAMESPACE_ROOT

WALKER_DEFAULT_NAMESPACE_ROOT

GROUP_BY_NAME

GROUP_BY_NAME

GROUP_BY_VERSION

GROUP_BY_VERSION

Properties

$expectedWalkers

$expectedWalkers : array|array<mixed,string>

A list of `Pvra\PhpParser\RequirementAnalyserAwareInterface` class names.

Type

array|array<mixed,string>

Methods

configure()

configure() 

getDefaultAnalysers()

getDefaultAnalysers() 

initialize()

initialize(\Symfony\Component\Console\Input\InputInterface  $input, \Symfony\Component\Console\Output\OutputInterface  $output) 

Parameters

\Symfony\Component\Console\Input\InputInterface $input
\Symfony\Component\Console\Output\OutputInterface $output

createFileAnalyserInstance()

createFileAnalyserInstance(\Symfony\Component\Console\Input\InputInterface|string  $input, null|boolean  $preventNameExpansion = null) : \Pvra\FileAnalyser

Parameters

\Symfony\Component\Console\Input\InputInterface|string $input
null|boolean $preventNameExpansion

Returns

\Pvra\FileAnalyser

createMessageLocatorInstance()

createMessageLocatorInstance(\Symfony\Component\Console\Input\InputInterface  $input) 

Parameters

\Symfony\Component\Console\Input\InputInterface $input

createNodeWalkerInstances()

createNodeWalkerInstances(string  $librarySourceOption = null) : array<mixed,\Pvra\Analysers\LanguageFeatureAnalyser>

Parameters

string $librarySourceOption

Returns

array<mixed,\Pvra\Analysers\LanguageFeatureAnalyser>

getArrayFromFile()

getArrayFromFile(string  $filePath) : array

Parameters

string $filePath

Returns

array —

An array having the type of the given file at index 0 and its data at index 1.

execute()

execute(\Symfony\Component\Console\Input\InputInterface  $input, \Symfony\Component\Console\Output\OutputInterface  $output) 

Parameters

\Symfony\Component\Console\Input\InputInterface $input
\Symfony\Component\Console\Output\OutputInterface $output

renderResultCollectionByName()

renderResultCollectionByName(\Pvra\Result\Collection  $results, \Symfony\Component\Console\Output\OutputInterface  $out, \Symfony\Component\Console\Input\InputInterface  $in) 

Parameters

\Pvra\Result\Collection $results
\Symfony\Component\Console\Output\OutputInterface $out
\Symfony\Component\Console\Input\InputInterface $in

renderResultCollectionByRequiredVersion()

renderResultCollectionByRequiredVersion(\Pvra\Result\Collection  $results, \Symfony\Component\Console\Output\OutputInterface  $out) 

Parameters

\Pvra\Result\Collection $results
\Symfony\Component\Console\Output\OutputInterface $out

applyIteratorFilter()

applyIteratorFilter(\Symfony\Component\Finder\Finder  $files, array  $filterList = array()) 

Parameters

\Symfony\Component\Finder\Finder $files
array $filterList