Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7406455
Group.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
Group.php
View Options
<?php
/**
* This file is part of the Peast package
*
* (c) Marco Marchiò <marco.mm89@gmail.com>
*
* For the full copyright and license information refer to the LICENSE file
* distributed with this source code
*/
namespace
Peast\Selector\Node
;
use
Peast\Selector\Matches
;
/**
* Selector group class
*
* @author Marco Marchiò <marco.mm89@gmail.com>
*/
class
Group
{
/**
* Selector combinators
*
* @var Combinator[]
*/
protected
$combinators
=
array
();
/**
* Adds a combinator
*
* @param Combinator $combinators Combinator
*
* @return $this
*/
public
function
addCombinator
(
Combinator
$combinators
)
{
$this
->
combinators
[]
=
$combinators
;
return
$this
;
}
/**
* Executes the current group on the given matches
*
* @param Matches $matches Matches
*/
public
function
exec
(
Matches
$matches
)
{
foreach
(
$this
->
combinators
as
$combinator
)
{
$combinator
->
exec
(
$matches
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 20:25 (1 d, 9 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
32/e3/44491872c987e8b95afebf5fdc9e
Default Alt Text
Group.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment