mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 17:41:50 +01:00
Create and implement CollectionInterface as contract of all collections (e.g. based on the BaseCollection class)
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Meritoo\Common\Collection;
|
||||
|
||||
use ArrayAccess;
|
||||
use Countable;
|
||||
use IteratorAggregate;
|
||||
use Meritoo\Common\Contract\Collection\CollectionInterface;
|
||||
use Meritoo\Common\Traits\CollectionTrait;
|
||||
|
||||
/**
|
||||
@@ -19,7 +19,7 @@ use Meritoo\Common\Traits\CollectionTrait;
|
||||
* @author Meritoo <github@meritoo.pl>
|
||||
* @copyright Meritoo <http://www.meritoo.pl>
|
||||
*/
|
||||
abstract class BaseCollection implements Countable, ArrayAccess, IteratorAggregate
|
||||
abstract class BaseCollection implements CollectionInterface
|
||||
{
|
||||
use CollectionTrait;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user