Page MenuHomeWickedGov Phorge

Group.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

Group.php

<?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

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)

Event Timeline