Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5983635
MatchWithOffsetsResult.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
990 B
Referenced Files
None
Subscribers
None
MatchWithOffsetsResult.php
View Options
<?php
/*
* This file is part of composer/pcre.
*
* (c) Composer <https://github.com/composer>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace
Composer\Pcre
;
final
class
MatchWithOffsetsResult
{
/**
* An array of match group => pair of string matched + offset in bytes (or -1 if no match)
*
* @readonly
* @var array<int|string, array{string|null, int}>
* @phpstan-var array<int|string, array{string|null, int<-1, max>}>
*/
public
$matches
;
/**
* @readonly
* @var bool
*/
public
$matched
;
/**
* @param 0|positive-int $count
* @param array<array{string|null, int}> $matches
* @phpstan-param array<int|string, array{string|null, int<-1, max>}> $matches
*/
public
function
__construct
(
int
$count
,
array
$matches
)
{
$this
->
matches
=
$matches
;
$this
->
matched
=
(
bool
)
$count
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 22:57 (1 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
34/0e/98777f0ba9bdb3d49695e0dbb964
Default Alt Text
MatchWithOffsetsResult.php (990 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment