-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a365cf1
commit c8ad2ab
Showing
5 changed files
with
54 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Inspirum\Arrayable; | ||
|
||
use ArrayAccess; | ||
use Countable; | ||
use IteratorAggregate; | ||
use JsonSerializable; | ||
use Stringable; | ||
|
||
/** | ||
* @template TItemKey of array-key | ||
* @template TItemValue | ||
* @template TKey of array-key | ||
* @template TValue of \Inspirum\Arrayable\Arrayable<TItemKey, TItemValue> | ||
* @extends \ArrayAccess<TKey, TValue> | ||
* @extends \IteratorAggregate<TKey, TValue> | ||
* @extends \Inspirum\Arrayable\Arrayable<TKey, array<TItemKey, TItemValue>> | ||
*/ | ||
interface Collection extends ArrayAccess, Countable, IteratorAggregate, Arrayable, JsonSerializable, Stringable | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Inspirum\Arrayable; | ||
|
||
use JsonSerializable; | ||
use Stringable; | ||
|
||
/** | ||
* @template TKey of array-key | ||
* @template TValue | ||
* @extends \Inspirum\Arrayable\Arrayable<TKey, TValue> | ||
*/ | ||
interface Model extends Arrayable, JsonSerializable, Stringable | ||
{ | ||
} |