private function isAutoWirable($id): bool
    {
        if (is_string($id) && class_exists($id)) {

            if (count($this->interfaces) > 0) {

                return (bool) array_intersect($this->interfaces, class_implements($id));

            }

            return true;

        }

        return false;
    }
private function isAutoWirable($id): bool
    {
        if (is_string($id) && class_exists($id)) {

            if (count($this->interfaces) > 0) {

                return (bool) array_intersect($this->interfaces, class_implements($id));

            }

            return true;

        }

        return false;
    }
private function isAutoWirable ( $ id ) : bool { if ( is_string ( $ id ) && class_exists ( $ id ) ) { if ( count ( $ this -> interfaces ) > 0 ) { return ( bool ) array_intersect ( $ this -> interfaces , class_implements ( $ id ) ) ; } return true ; } return false ; }
Return whether the given id is an auto wirable class.

@param $id
@return bool
Return whether the given id is an auto wirable class .