From d4aabe91e5f263cbec676521dfb0da15ef741bef Mon Sep 17 00:00:00 2001 From: Dusan Kasan Date: Tue, 31 May 2016 12:56:09 +0200 Subject: [PATCH] SizeIs function documented --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 62f7a0a..1e45014 100644 --- a/README.md +++ b/README.md @@ -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