public function unbound(string $index)
    {
        list($class, $name) = explode('-', $index);
        if (class_exists($class) && ! (new \ReflectionClass($class))->isAbstract()) {
            return new Untargeted($class);
        }

        return new Unbound("{$class}-{$name}");
    }
public function unbound(string $index)
    {
        list($class, $name) = explode('-', $index);
        if (class_exists($class) && ! (new \ReflectionClass($class))->isAbstract()) {
            return new Untargeted($class);
        }

        return new Unbound("{$class}-{$name}");
    }
public function unbound ( string $ index ) { list ( $ class , $ name ) = explode ( '-' , $ index ) ; if ( class_exists ( $ class ) && ! ( new \ ReflectionClass ( $ class ) ) -> isAbstract ( ) ) { return new Untargeted ( $ class ) ; } return new Unbound ( "{$class}-{$name}" ) ; }
Return Unbound exception

@param string $index {interface}-{bind name}

@return Unbound|Untargeted
Return Unbound exception