src/Type/Data/Data.php
private function isEquivalentTo(string $type): bool
    {
        $equivalents = self::EQUIVALENT_TYPES_METHODS;

        if (!isset($equivalents[$type])) {
            return false;
        }

        $method = $equivalents[$type];

        return call_user_func([$this, $method]);
    }
private function isEquivalentTo(string $type): bool
    {
        $equivalents = self::EQUIVALENT_TYPES_METHODS;

        if (!isset($equivalents[$type])) {
            return false;
        }

        $method = $equivalents[$type];

        return call_user_func([$this, $method]);
    }
private function isEquivalentTo ( string $ type ) : bool { $ equivalents = self :: EQUIVALENT_TYPES_METHODS ; if ( ! isset ( $ equivalents [ $ type ] ) ) { return false ; } $ method = $ equivalents [ $ type ] ; return call_user_func ( [ $ this , $ method ] ) ; }
Indica si el tipo de la variable es equivalente al dado

@param string $type

@return bool
Indica si el tipo de la variable es equivalente al dado