class MatchResult
Hierarchy
- class \Composer\Pcre\MatchResult
Expanded class hierarchy of MatchResult
File
-
vendor/
composer/ pcre/ src/ MatchResult.php, line 14
Namespace
Composer\PcreView source
final class MatchResult {
/**
* An array of match group => string matched
*
* @readonly
* @var array<int|string, string|null>
*/
public $matches;
/**
* @readonly
* @var bool
*/
public $matched;
/**
* @param 0|positive-int $count
* @param array<string|null> $matches
*/
public function __construct(int $count, array $matches) {
$this->matches = $matches;
$this->matched = (bool) $count;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
MatchResult::$matched | public | property | @readonly |
MatchResult::$matches | public | property | An array of match group => string matched |
MatchResult::__construct | public | function |