PHPHtmlParser\Dom\Collection::offsetSet PHP Метод

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

Set an attribute by the given offset
public offsetSet ( mixed $offset, mixed $value )
$offset mixed
$value mixed
    public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->collection[] = $value;
        } else {
            $this->collection[$offset] = $value;
        }
    }