Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MatchResult.php

class MatchResult

Hierarchy

  • class \Composer\Pcre\MatchResult

Expanded class hierarchy of MatchResult

File

vendor/composer/pcre/src/MatchResult.php, line 14

Namespace

Composer\Pcre
View 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 =&gt; string matched
MatchResult::__construct public function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal