Skip to content

Commit

Permalink
SizeIs function documented
Browse files Browse the repository at this point in the history
  • Loading branch information
DusanKasan committed May 31, 2016
1 parent cbfb54f commit d4aabe9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,15 @@ Collection::from([1, 3, 3, 2])->sizeIsBetween(3, 5); //true
sizeIsBetween([1, 3, 3, 2], 3, 5); //true
```

#### sizeIs(int $size) : bool
Checks whether this collection has exactly $size items.
```php
Collection::from([1, 3, 3, 2])->sizeIs(4); //true
```
```php
sizeIs([1, 3, 3, 2], 4); //true
```

#### sizeIsGreaterThan(int $size) : bool
Checks whether this collection has more than $size items.
```php
Expand Down

0 comments on commit d4aabe9

Please sign in to comment.