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