mirror of
https://github.com/getgrav/grav.git
synced 2025-12-16 21:29:43 +01:00
Add storage interface also to object collection
This commit is contained in:
@@ -17,7 +17,7 @@ use RocketTheme\Toolbox\ArrayTraits\Export;
|
||||
* @property string $id
|
||||
* @package Grav\Framework\Object
|
||||
*/
|
||||
abstract class AbstractObject implements StoredObjectInterface
|
||||
abstract class AbstractObject implements ObjectInterface, StoredObjectInterface
|
||||
{
|
||||
use ObjectStorageTrait {
|
||||
check as traitcheck;
|
||||
|
||||
@@ -14,7 +14,7 @@ use Grav\Framework\Collection\Collection;
|
||||
* Abstract Object Collection
|
||||
* @package Grav\Framework\Object
|
||||
*/
|
||||
abstract class AbstractObjectCollection extends Collection implements ObjectCollectionInterface
|
||||
abstract class AbstractObjectCollection extends Collection implements ObjectCollectionInterface, StoredObjectInterface
|
||||
{
|
||||
use ObjectCollectionTrait, ObjectStorageTrait;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Grav\Framework\Object;
|
||||
* Stored Object Interface
|
||||
* @package Grav\Framework\Object
|
||||
*/
|
||||
interface StoredObjectInterface extends ObjectInterface
|
||||
interface StoredObjectInterface
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user