Self In An Interface

../_images/self_in_interface.png

The keyword self in an interface represents that same interface: it does not represent the host class. Hence, using self as return type means that the method must return an object that implements the type i, not of the host class.

See Also

PHP Features