In PHP 5.3 > can I type hint a object with interface?
Like so:
public function AddToFavorite(Trendmed\Interfaces\Favoriteable $entity) {}
or Im only limited to checking implementation inside function? I’ve tried to type hint like above and it’s not working.
From the manual:
So it could use interfaces.