Skip to content

Commit

Permalink
Arrays 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Dec 5, 2020
1 parent bce0441 commit 96ab436
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<a name="2.0.0"></a>
# [2.1.0](https://github.com/atomastic/arrays) (2020-12-05)
* add ability to extend Arrays class with Macros.

```php
use Atomastic\Arrays\Arrays;
use Atomastic\Macroable\Macroable;

Arrays::macro('customMethod', function($arg1 = 1, $arg2 = 1) {
return $this->count() + $arg1 + $arg2;
});

$arrays = new Arrays([1, 2, 3]);

echo $arrays->customMethod(1, 2);
echo $arrays->customMethod();
```

# [2.0.0](https://github.com/atomastic/arrays) (2020-12-02)
* add new operators added for where() method.

Expand Down

0 comments on commit 96ab436

Please sign in to comment.