src/Type/Data/Data.php
public function getType(): DataType
    {
        if (is_object($this->variable)) {
            $typeName = get_class($this->variable);

            return DataType::make($typeName);
        }

        $typeName = gettype($this->variable);

        return DataType::make($typeName);
    }
public function getType(): DataType
    {
        if (is_object($this->variable)) {
            $typeName = get_class($this->variable);

            return DataType::make($typeName);
        }

        $typeName = gettype($this->variable);

        return DataType::make($typeName);
    }
public function getType ( ) : DataType { if ( is_object ( $ this -> variable ) ) { $ typeName = get_class ( $ this -> variable ) ; return DataType :: make ( $ typeName ) ; } $ typeName = gettype ( $ this -> variable ) ; return DataType :: make ( $ typeName ) ; }
Devuelve el DataType

@return \PlanB\Type\DataType\DataType
Devuelve el DataType