15 lines
508 B
PHP
15 lines
508 B
PHP
|
<?php
|
||
|
namespace Psr\Collection;
|
||
|
|
||
|
use Iterator, ArrayAccess, Countable;
|
||
|
|
||
|
interface CollectionInterface extends Iterator, ArrayAccess, Countable
|
||
|
{
|
||
|
public function set(mixed $name, $value): CollectionInterface;
|
||
|
public function has(mixed $name): bool;
|
||
|
public function get(mixed $name);
|
||
|
public function remove(mixed $name): CollectionInterface;
|
||
|
public static function fromArray(array $source): CollectionInterface;
|
||
|
public static function fromObject(object $source): CollectionInterface;
|
||
|
}
|