src/Di/Container.php
public function getInterface(string $name)
    {
        if ($this->hasInterface($name)) {
            return $this->interfaces[$name];
        }
        return null;
    }
public function getInterface(string $name)
    {
        if ($this->hasInterface($name)) {
            return $this->interfaces[$name];
        }
        return null;
    }
public function getInterface ( string $ name ) { if ( $ this -> hasInterface ( $ name ) ) { return $ this -> interfaces [ $ name ] ; } return null ; }
Get an interface

@param string $name
@return mixed|null
Get an interface