\Pvra\Console\CommandsPvraBaseCommand

PvraBaseCommand

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
configure()
getDefaultAnalysers()
initialize()
createFileAnalyserInstance()
createMessageLocatorInstance()
createNodeWalkerInstances()
getArrayFromFile()
$expectedWalkers
N/A
No private methods found
No private properties found
N/A

Constants

WALKER_DEFAULT_NAMESPACE_ROOT

WALKER_DEFAULT_NAMESPACE_ROOT

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.