@@ -9,24 +9,15 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | namespace Noz; |
| 11 | 11 | |
| 12 | -use Closure; |
|
| 13 | 12 | use Illuminate\Support\Str; |
| 14 | 13 | use InvalidArgumentException; |
| 15 | 14 | use Iterator; |
| 15 | +use Noz\Contracts\CollectionInterface; |
|
| 16 | 16 | use Noz\Immutable\Collection; |
| 17 | 17 | use Noz\Immutable\Sequence; |
| 18 | -use Noz\Contracts\CollectionInterface; |
|
| 19 | 18 | use RuntimeException; |
| 20 | -use Serializable; |
|
| 21 | 19 | use Traversable; |
| 22 | 20 | |
| 23 | -use Symfony\Component\Serializer\Serializer; |
|
| 24 | -use Symfony\Component\Serializer\Encoder\XmlEncoder; |
|
| 25 | -use Symfony\Component\Serializer\Encoder\JsonEncoder; |
|
| 26 | -use Symfony\Component\Serializer\Encoder\YamlEncoder; |
|
| 27 | -use Symfony\Component\Serializer\Encoder\CsvEncoder; |
|
| 28 | -use Symfony\Component\Serializer\Normalizer\ObjectNormalizer; |
|
| 29 | - |
|
| 30 | 21 | /** |
| 31 | 22 | * Collection factory. |
| 32 | 23 | * |
@@ -9,21 +9,18 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | namespace Noz\Collection; |
| 11 | 11 | |
| 12 | -use InvalidArgumentException; |
|
| 13 | -use OutOfBoundsException; |
|
| 14 | - |
|
| 15 | 12 | use ArrayIterator; |
| 16 | 13 | use Countable; |
| 14 | +use InvalidArgumentException; |
|
| 17 | 15 | use Iterator; |
| 18 | -use Traversable; |
|
| 19 | - |
|
| 20 | 16 | use Noz\Contracts\Arrayable; |
| 21 | -use Noz\Contracts\Invokable; |
|
| 22 | 17 | use Noz\Contracts\CollectionInterface; |
| 23 | - |
|
| 18 | +use Noz\Contracts\Invokable; |
|
| 24 | 19 | use Noz\Traits\IsArrayable; |
| 25 | 20 | use Noz\Traits\IsContainer; |
| 26 | 21 | use Noz\Traits\IsSerializable; |
| 22 | +use OutOfBoundsException; |
|
| 23 | +use Traversable; |
|
| 27 | 24 | |
| 28 | 25 | use function |
| 29 | 26 | Noz\is_traversable, |
@@ -9,18 +9,11 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | namespace Noz\Collection; |
| 11 | 11 | |
| 12 | -use BadMethodCallException; |
|
| 13 | - |
|
| 14 | 12 | use Countable; |
| 15 | -use Noz\Contracts\Structure\Dictable; |
|
| 16 | -use Traversable; |
|
| 17 | -use SplFixedArray; |
|
| 18 | - |
|
| 19 | -use Noz\Contracts\Structure\Sequenceable; |
|
| 20 | -use Noz\Contracts\Immutable; |
|
| 21 | 13 | use Noz\Contracts\Arrayable; |
| 14 | +use Noz\Contracts\Immutable; |
|
| 22 | 15 | use Noz\Contracts\Invokable; |
| 23 | - |
|
| 16 | +use Noz\Contracts\Structure\Dictable; |
|
| 24 | 17 | use Noz\Traits\IsImmutable; |
| 25 | 18 | |
| 26 | 19 | use function Noz\to_array; |
@@ -9,21 +9,18 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | namespace Noz\Immutable; |
| 11 | 11 | |
| 12 | -use InvalidArgumentException; |
|
| 13 | - |
|
| 14 | 12 | use Countable; |
| 15 | -use Traversable; |
|
| 16 | -use Serializable; |
|
| 17 | -use SplDoublyLinkedList; |
|
| 18 | - |
|
| 19 | -use Noz\Contracts\Structure\Listable; |
|
| 20 | -use Noz\Contracts\Immutable; |
|
| 13 | +use InvalidArgumentException; |
|
| 21 | 14 | use Noz\Contracts\Arrayable; |
| 15 | +use Noz\Contracts\Immutable; |
|
| 22 | 16 | use Noz\Contracts\Invokable; |
| 23 | - |
|
| 17 | +use Noz\Contracts\Structure\Listable; |
|
| 24 | 18 | use Noz\Traits\IsArrayable; |
| 25 | -use Noz\Traits\IsImmutable; |
|
| 26 | 19 | use Noz\Traits\IsContainer; |
| 20 | +use Noz\Traits\IsImmutable; |
|
| 21 | +use Serializable; |
|
| 22 | +use SplDoublyLinkedList; |
|
| 23 | +use Traversable; |
|
| 27 | 24 | |
| 28 | 25 | use function |
| 29 | 26 | Noz\is_traversable; |
@@ -9,18 +9,11 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | namespace Noz\Collection; |
| 11 | 11 | |
| 12 | -use BadMethodCallException; |
|
| 13 | - |
|
| 14 | 12 | use Countable; |
| 15 | -use Noz\Contracts\Structure\Listable; |
|
| 16 | -use Traversable; |
|
| 17 | -use SplFixedArray; |
|
| 18 | - |
|
| 19 | -use Noz\Contracts\Structure\Sequenceable; |
|
| 20 | -use Noz\Contracts\Immutable; |
|
| 21 | 13 | use Noz\Contracts\Arrayable; |
| 14 | +use Noz\Contracts\Immutable; |
|
| 22 | 15 | use Noz\Contracts\Invokable; |
| 23 | - |
|
| 16 | +use Noz\Contracts\Structure\Listable; |
|
| 24 | 17 | use Noz\Traits\IsImmutable; |
| 25 | 18 | |
| 26 | 19 | use function Noz\to_array; |
@@ -9,27 +9,22 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | namespace Noz\Immutable; |
| 11 | 11 | |
| 12 | -use BadMethodCallException; |
|
| 13 | -use RuntimeException; |
|
| 14 | - |
|
| 15 | -use Iterator; |
|
| 16 | 12 | use ArrayAccess; |
| 13 | +use BadMethodCallException; |
|
| 17 | 14 | use Countable; |
| 18 | -use Serializable; |
|
| 19 | -use SplFixedArray; |
|
| 20 | -use Traversable; |
|
| 21 | - |
|
| 22 | 15 | use Illuminate\Support\Str; |
| 23 | - |
|
| 16 | +use Iterator; |
|
| 24 | 17 | use Noz\Contracts\Arrayable; |
| 25 | 18 | use Noz\Contracts\Immutable; |
| 26 | 19 | use Noz\Contracts\Invokable; |
| 27 | 20 | use Noz\Contracts\Structure\Sequenceable; |
| 28 | - |
|
| 21 | +use Noz\Traits\IsArrayable; |
|
| 29 | 22 | use Noz\Traits\IsContainer; |
| 30 | 23 | use Noz\Traits\IsImmutable; |
| 31 | -use Noz\Traits\IsArrayable; |
|
| 32 | 24 | use Noz\Traits\IsSerializable; |
| 25 | +use RuntimeException; |
|
| 26 | +use SplFixedArray; |
|
| 27 | +use Traversable; |
|
| 33 | 28 | |
| 34 | 29 | use function |
| 35 | 30 | Noz\to_array, |
@@ -9,17 +9,11 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | namespace Noz\Collection; |
| 11 | 11 | |
| 12 | -use BadMethodCallException; |
|
| 13 | - |
|
| 14 | 12 | use Countable; |
| 15 | -use Traversable; |
|
| 16 | -use SplFixedArray; |
|
| 17 | - |
|
| 18 | -use Noz\Contracts\Structure\Settable; |
|
| 19 | -use Noz\Contracts\Immutable; |
|
| 20 | 13 | use Noz\Contracts\Arrayable; |
| 14 | +use Noz\Contracts\Immutable; |
|
| 21 | 15 | use Noz\Contracts\Invokable; |
| 22 | - |
|
| 16 | +use Noz\Contracts\Structure\Settable; |
|
| 23 | 17 | use Noz\Traits\IsImmutable; |
| 24 | 18 | |
| 25 | 19 | use function Noz\to_array; |
@@ -9,17 +9,11 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | namespace Noz\Collection; |
| 11 | 11 | |
| 12 | -use BadMethodCallException; |
|
| 13 | - |
|
| 14 | 12 | use Countable; |
| 15 | -use Traversable; |
|
| 16 | -use SplFixedArray; |
|
| 17 | - |
|
| 18 | -use Noz\Contracts\Structure\Listable; |
|
| 19 | -use Noz\Contracts\Immutable; |
|
| 20 | 13 | use Noz\Contracts\Arrayable; |
| 14 | +use Noz\Contracts\Immutable; |
|
| 21 | 15 | use Noz\Contracts\Invokable; |
| 22 | - |
|
| 16 | +use Noz\Contracts\Structure\Listable; |
|
| 23 | 17 | use Noz\Traits\IsImmutable; |
| 24 | 18 | |
| 25 | 19 | use function Noz\to_array; |
@@ -9,23 +9,18 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | namespace Noz; |
| 11 | 11 | |
| 12 | -use InvalidArgumentException; |
|
| 13 | -use Noz\Immutable\Sequence; |
|
| 14 | -use OutOfBoundsException; |
|
| 15 | - |
|
| 16 | -use ArrayIterator; |
|
| 17 | 12 | use Countable; |
| 13 | +use InvalidArgumentException; |
|
| 18 | 14 | use Iterator; |
| 19 | -use ReflectionFunction; |
|
| 20 | -use Traversable; |
|
| 21 | - |
|
| 22 | 15 | use Noz\Contracts\Arrayable; |
| 23 | -use Noz\Contracts\Invokable; |
|
| 24 | 16 | use Noz\Contracts\CollectionInterface; |
| 25 | - |
|
| 17 | +use Noz\Contracts\Invokable; |
|
| 18 | +use Noz\Immutable\Sequence; |
|
| 26 | 19 | use Noz\Traits\IsArrayable; |
| 27 | 20 | use Noz\Traits\IsContainer; |
| 28 | 21 | use Noz\Traits\IsSerializable; |
| 22 | +use OutOfBoundsException; |
|
| 23 | +use Traversable; |
|
| 29 | 24 | |
| 30 | 25 | use function |
| 31 | 26 | Noz\is_traversable, |