src/Di/Container.php
protected function addInterface(string $name, string $class)
    {
        if (!$this->hasInterface($name)) {
            $this->interfaces[$name] = $class;
            return;
        }
        $interfaces = $this->getInterface($name);

        if (!is_array($interfaces)) {
            $interfaces = [$interfaces];
        }

        if (!in_array($class, $interfaces)) {
            $interfaces[] = $class;
            $this->interfaces[$name] = $interfaces;
        }
    }
protected function addInterface(string $name, string $class)
    {
        if (!$this->hasInterface($name)) {
            $this->interfaces[$name] = $class;
            return;
        }
        $interfaces = $this->getInterface($name);

        if (!is_array($interfaces)) {
            $interfaces = [$interfaces];
        }

        if (!in_array($class, $interfaces)) {
            $interfaces[] = $class;
            $this->interfaces[$name] = $interfaces;
        }
    }
protected function addInterface ( string $ name , string $ class ) { if ( ! $ this -> hasInterface ( $ name ) ) { $ this -> interfaces [ $ name ] = $ class ; return ; } $ interfaces = $ this -> getInterface ( $ name ) ; if ( ! is_array ( $ interfaces ) ) { $ interfaces = [ $ interfaces ] ; } if ( ! in_array ( $ class , $ interfaces ) ) { $ interfaces [ ] = $ class ; $ this -> interfaces [ $ name ] = $ interfaces ; } }
Catalogue also class interface when using add

@param string $name
@param string $class
Catalogue also class interface when using add