![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-page-builder/Model/Dom/Adapter/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\PageBuilder\Model\Dom\Adapter; /** * Interface for NodeList wrappers * * @api */ interface NodeListInterface { /** * Gets the nth Element object in the internal DOMNodeList. * * @param int $index * @return ElementInterface|null */ public function item(int $index): ?ElementInterface; /** * Resets the internal pointer to the beginning of the collection * * @return void */ public function rewind(): void; /** * Returns the current index key value * * @return int */ public function key(): int; /** * Returns true if the current index key is valid * * @return bool */ public function valid(): bool; /** * Advances the iterator one position forward * * @return void */ public function next(): void; /** * Returns the current node in the list * * @return NodeInterface|null */ public function current(): ?NodeInterface; /** * Returns true if the specified offset points to a value in the collection, false otherwise. * * @param int $offset * @return bool */ public function offsetExists($offset): bool; /** * Returns the item in the $offset position in the collection * * @param int $offset * @return ElementInterface|null */ public function offsetGet($offset): ?ElementInterface; /** * Attempts to set the specified value in the $offset position of the collection * * @param int $offset * @param string $value */ public function offsetSet($offset, $value): void; /** * Attempts to unset the item in the specified offset of the collection * * @param int $offset */ public function offsetUnset($offset): void; /** * Returns the number of items in the collection * * @return int */ public function count(): int; }