‪TYPO3CMS  ‪main
TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\AbstractCoreMatcherFixture Class Reference
Inheritance diagram for TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\AbstractCoreMatcherFixture:
TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\AbstractCoreMatcher TYPO3\CMS\Install\ExtensionScanner\CodeScannerInterface

Public Member Functions

 initializeFlatMatcherDefinitions ()
 
 validateMatcherDefinitions (array $requiredArrayKeys=[])
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\AbstractCoreMatcher
 getMatches ()
 

Public Attributes

 $matcherDefinitions = array( )
 
- ‪Public Attributes inherited from ‪TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\AbstractCoreMatcher
const NODE_RESOLVED_AS = 'nodeResolvedAs'
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\AbstractCoreMatcher
 validateMatcherDefinitionKeys (string $key, array $matcherDefinition, array $requiredArrayKeys=[])
 
 isArgumentUnpackingUsed (array $arguments=[])
 
 isLineIgnored (Node $node)
 
 isFileIgnored (Node $node)
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\AbstractCoreMatcher
array $matcherDefinitions = array( )
 
array $matches = array( )
 
array $flatMatcherDefinitions = array( )
 
int $currentCodeLine = 0
 
bool $isCurrentLineIgnored = false
 
bool $isFullFileIgnored = false
 

Detailed Description

Definition at line 22 of file AbstractCoreMatcherFixture.php.

Member Function Documentation

◆ initializeFlatMatcherDefinitions()

TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\AbstractCoreMatcherFixture::initializeFlatMatcherDefinitions ( )

◆ validateMatcherDefinitions()

TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\AbstractCoreMatcherFixture::validateMatcherDefinitions ( array  $requiredArrayKeys = [])

Some matcher need specific keys in the array definition to work properly. This method is called typically in __construct() of a matcher to verify these are given. This method is a measure against broken core configuration. It should be pretty quick and is only called in __construct() once, no kitten should be harmed.

This method works on $this->matcherDefinitions.

Parameters
array$requiredArrayKeys‪List of required keys for single matchers
Exceptions

Reimplemented from TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\AbstractCoreMatcher.

Definition at line 31 of file AbstractCoreMatcherFixture.php.

Member Data Documentation

◆ $matcherDefinitions

TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures\AbstractCoreMatcherFixture::$matcherDefinitions = array( )

Definition at line 24 of file AbstractCoreMatcherFixture.php.