kartavik / limit-collection
Base collection with limit size option
1.0.1
2019-07-15 13:02 UTC
Requires
- php: >=7.2
- wearesho-team/base-collection: ^1.0
Requires (Dev)
- phpunit/phpunit: ^8.2
- squizlabs/php_codesniffer: ^3.4
This package is auto-updated.
Last update: 2024-10-13 02:22:56 UTC
README
Based on BaseCollection
Install
composer require kartavik/limit-collection
Usage
<?php use Kartavik\LimitCollection; class CustomCollection extends LimitCollection { public function type() : string { return stdClass::class; // see Wearesho\BaseCollection } public function limit() : int { return 5; // here you can put hardcode limit of collection } }