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

Breadcrumb

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

function MatchAllWithOffsetsResult::__construct

@phpstan-param array<int|string, list<array{string|null, int<-1, max>}>> $matches

Parameters

0|positive-int $count:

array<int|string, list<array{string|null, int}>> $matches:

File

vendor/composer/pcre/src/MatchAllWithOffsetsResult.php, line 42

Class

MatchAllWithOffsetsResult

Namespace

Composer\Pcre

Code

public function __construct(int $count, array $matches) {
    $this->matches = $matches;
    $this->matched = (bool) $count;
    $this->count = $count;
}
RSS feed
Powered by Drupal