Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/Chain.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Cocur\Chain\Link\ChangeKeyCase;
use Cocur\Chain\Link\Combine;
use Cocur\Chain\Link\Count;
use Cocur\Chain\Link\CountValues;
use Cocur\Chain\Link\Diff;
use Cocur\Chain\Link\Fill;
use Cocur\Chain\Link\Filter;
Expand All @@ -15,6 +16,7 @@
use Cocur\Chain\Link\IntersectAssoc;
use Cocur\Chain\Link\IntersectKey;
use Cocur\Chain\Link\Join;
use Cocur\Chain\Link\KeyExists;
use Cocur\Chain\Link\Keys;
use Cocur\Chain\Link\Last;
use Cocur\Chain\Link\Map;
Expand All @@ -33,9 +35,11 @@
use Cocur\Chain\Link\Slice;
use Cocur\Chain\Link\Sort;
use Cocur\Chain\Link\SortKeys;
use Cocur\Chain\Link\Splice;
use Cocur\Chain\Link\Sum;
use Cocur\Chain\Link\Unique;
use Cocur\Chain\Link\Unshift;
use Cocur\Chain\Link\Values;
use Countable;

/**
Expand All @@ -49,16 +53,18 @@ class Chain extends AbstractChain implements Countable
use ChangeKeyCase,
Combine,
Count,
CountValues,
Diff,
Filter,
Fill,
Filter,
Find,
First,
Flip,
Intersect,
IntersectAssoc,
IntersectKey,
Join,
KeyExists,
Keys,
Last,
Map,
Expand All @@ -77,9 +83,11 @@ class Chain extends AbstractChain implements Countable
Slice,
Sort,
SortKeys,
Splice,
Sum,
Unique,
Unshift;
Unshift,
Values;

/**
* @param array $array
Expand Down
3 changes: 3 additions & 0 deletions tests/ChainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function chainHasTraits()
$this->assertTrue(method_exists($c, 'changeKeyCase'));
$this->assertTrue(method_exists($c, 'combine'));
$this->assertTrue(method_exists($c, 'count'));
$this->assertTrue(method_exists($c, 'countValues'));
$this->assertTrue(method_exists($c, 'diff'));
$this->assertTrue(method_exists($c, 'fill'));
$this->assertTrue(method_exists($c, 'filter'));
Expand Down Expand Up @@ -85,9 +86,11 @@ public function chainHasTraits()
$this->assertTrue(method_exists($c, 'slice'));
$this->assertTrue(method_exists($c, 'sort'));
$this->assertTrue(method_exists($c, 'sortKeys'));
$this->assertTrue(method_exists($c, 'splice'));
$this->assertTrue(method_exists($c, 'sum'));
$this->assertTrue(method_exists($c, 'unique'));
$this->assertTrue(method_exists($c, 'unshift'));
$this->assertTrue(method_exists($c, 'values'));
}

/**
Expand Down