protected function isTypeMatched($class, array $arguments)/*# : bool */
    {
        if (empty($arguments)) {
            return false;
        } elseif (null !== $class) {
            return is_a($arguments[0], $class->getName());
        } else {
            return true;
        }
    }
protected function isTypeMatched($class, array $arguments)/*# : bool */
    {
        if (empty($arguments)) {
            return false;
        } elseif (null !== $class) {
            return is_a($arguments[0], $class->getName());
        } else {
            return true;
        }
    }
protected function isTypeMatched ( $ class , array $ arguments ) /*# : bool */ { if ( empty ( $ arguments ) ) { return false ; } elseif ( null !== $ class ) { return is_a ( $ arguments [ 0 ] , $ class -> getName ( ) ) ; } else { return true ; } }
Try best to guess parameter and argument are the same type

@param  null|\ReflectionClass $class
@param  array $arguments
@return bool
@access protected
Try best to guess parameter and argument are the same type