PHP Класс PhpCss\Ast\Selector\Group

This is the root element of a standard selector string like: "element, .class" Because it is a list the some standard interfaces are implemented for easier usage.
Наследование: extends PhpCss\Ast\Selector, implements ArrayAccess, implements Countable, implements IteratorAggregate
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( array $sequences = [] ) Create the object and assign sequences if provided. They can be added later of course.
accept ( PhpCss\Ast\Visitor $visitor ) : null | void Accept visitors, because this element has children, enter and leave are called.
count ( ) : integer Return the sequence list count.
getIterator ( ) : Traversable Return an iterator for the sequences
offsetExists ( integer $offset ) : boolean Check if a sequence at the given position is available in the list.
offsetGet ( integer $offset ) : Sequence Return the sequence at the given position.
offsetSet ( integer | null $offset, Sequence $sequence ) Set/Add and sequence at the given position or top the end
offsetUnset ( integer $offset ) Remove the sequence at the given position

Описание методов

__construct() публичный Метод

Create the object and assign sequences if provided. They can be added later of course.
public __construct ( array $sequences = [] )
$sequences array

accept() публичный Метод

Accept visitors, because this element has children, enter and leave are called.
public accept ( PhpCss\Ast\Visitor $visitor ) : null | void
$visitor PhpCss\Ast\Visitor
Результат null | void

count() публичный Метод

Return the sequence list count.
См. также: Countable::count()
public count ( ) : integer
Результат integer

getIterator() публичный Метод

Return an iterator for the sequences
См. также: IteratorAggregate::getIterator()
public getIterator ( ) : Traversable
Результат Traversable

offsetExists() публичный Метод

Check if a sequence at the given position is available in the list.
См. также: ArrayAccess::offsetExists()
public offsetExists ( integer $offset ) : boolean
$offset integer
Результат boolean

offsetGet() публичный Метод

Return the sequence at the given position.
См. также: ArrayAccess::offsetGet()
public offsetGet ( integer $offset ) : Sequence
$offset integer
Результат Sequence

offsetSet() публичный Метод

Set/Add and sequence at the given position or top the end
См. также: ArrayAccess::offsetSet()
public offsetSet ( integer | null $offset, Sequence $sequence )
$offset integer | null
$sequence Sequence

offsetUnset() публичный Метод

Remove the sequence at the given position
См. также: ArrayAccess::offsetUnset()
public offsetUnset ( integer $offset )
$offset integer