PluginProbe
TablePress – Tables in WordPress made easy / 3.2.1
TablePress – Tables in WordPress made easy v3.2.1
3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 2.4.4 All 44 releases
tablepress / libraries / vendor / composer / pcre / MatchWithOffsetsResult.php

MatchWithOffsetsResult.php in TablePress – Tables in WordPress made easy 3.2.1, at libraries/vendor/composer/pcre/MatchWithOffsetsResult.php

42 lines 926 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * This file is part of composer/pcre.
5 *
6 * (c) Composer <https://github.com/composer>
7 *
8 * For the full copyright and license information, please view
9 * the LICENSE file that was distributed with this source code.
10 */
11
12 namespace TablePress\Composer\Pcre;
13
14 final class MatchWithOffsetsResult
15 {
16 /**
17 * An array of match group => pair of string matched + offset in bytes (or -1 if no match)
18 *
19 * @readonly
20 * @var array<int|string, array{string|null, int}>
21 * @phpstan-var array<int|string, array{string|null, int<-1, max>}>
22 */
23 public $matches;
24
25 /**
26 * @readonly
27 * @var bool
28 */
29 public $matched;
30
31 /**
32 * @param 0|positive-int $count
33 * @param array<array{string|null, int}> $matches
34 * @phpstan-param array<int|string, array{string|null, int<-1, max>}> $matches
35 */
36 public function __construct(int $count, array $matches)
37 {
38 $this->matches = $matches;
39 $this->matched = (bool) $count;
40 }
41 }
42