I want to have this interface:
interface Resource_Controller_Interface {
public function index_get():stdClass;
public function index_get(mixed $key):array;
public function index_post():bool;
public function index_put(mixed $key):bool;
public function index_patch(mixed $key):bool;
public function index_delete(mixed $key):bool;
}
Unfortunately, I cannot do two methods called 'index_get', even with different signatures.
I really want this interface to have these names though, is there a way I can do it? (using $key = null
will not force implementation...)