How can we create an interface composed of other interfaces?
Example:
<?php
namespace Domain\Interfaces;
interface Arrayable
{
public function toArray();
}
interface Jsonable
{
public function toJson();
}
interface Manager implements Arrayable, Jsonable
{
// void
}
Using implements
generates an error:
syntax error, unexpected 'implements' (T_IMPLEMENTS), expecting '{'