Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/DataStructure/StackInterface.php
Назад
<?php declare(strict_types=1); namespace Psl\DataStructure; use Countable; /** * An interface representing a stack data structure ( LIFO ). * * @template T * * @see https://en.wikipedia.org/wiki/Stack_(abstract_data_type) */ interface StackInterface extends Countable { /** * Adds an item to the stack. * * @param T $item */ public function push(mixed $item): void; /** * Retrieves, but does remove, the most recently added item that was not yet removed, * or returns null if this queue is empty. * * @return null|T */ public function peek(): mixed; /** * Retrieves and removes the most recently added item that was not yet removed, * or returns null if this queue is empty. * * @return null|T */ public function pull(): mixed; /** * Retrieve and removes the most recently added item that was not yet removed. * * @throws Exception\UnderflowException If the stack is empty. * * @return T */ public function pop(): mixed; /** * Count the items in the stack. * * @return int<0, max> */ public function count(): int; }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка