|
|
@ -30,6 +30,7 @@ interface ICollection extends IImmutableCollection {
|
|
|
|
* @return $this
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function merge (IImmutableCollection ...$collections): self;
|
|
|
|
public function merge (IImmutableCollection ...$collections): self;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add one or multiple values
|
|
|
|
* Add one or multiple values
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -49,6 +50,25 @@ interface ICollection extends IImmutableCollection {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function addCollection (IImmutableCollection ...$collections): self;
|
|
|
|
public function addCollection (IImmutableCollection ...$collections): self;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Add one or multiple values at the beginning of the current collection
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param mixed ...$values The values
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @psalm-param TValue ...$values
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @return $this
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function prepend (...$values): self;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Add the <b>values</b> of one or multiple collections at the beginning of the current collection
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param IImmutableCollection ...$collections The collections to add
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @return mixed
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function prependCollection (IImmutableCollection ...$collections): self;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Empties the collection
|
|
|
|
* Empties the collection
|
|
|
|
*
|
|
|
|
*
|
|
|
|