| @@ 22-28 (lines=7) @@ | ||
| 19 | /** @var array */ |
|
| 20 | protected $matches; |
|
| 21 | ||
| 22 | public function __construct(string $pattern, string $subject, bool $result, array $matches) |
|
| 23 | { |
|
| 24 | $this->pattern = $pattern; |
|
| 25 | $this->subject = $subject; |
|
| 26 | $this->hasMatch = $result; |
|
| 27 | $this->matches = $matches; |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @param string $pattern |
|
| @@ 21-27 (lines=7) @@ | ||
| 18 | /** @var array */ |
|
| 19 | protected $matches; |
|
| 20 | ||
| 21 | public function __construct(string $pattern, string $subject, bool $hasMatch, array $matches) |
|
| 22 | { |
|
| 23 | $this->pattern = $pattern; |
|
| 24 | $this->subject = $subject; |
|
| 25 | $this->hasMatch = $hasMatch; |
|
| 26 | $this->matches = $matches; |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @param string $pattern |
|