Jarves\Admin\FieldTypes\AbstractType::getPhpDataType PHP Method

getPhpDataType() public method

public getPhpDataType ( ) : string
return string
    public function getPhpDataType()
    {
        if (1 < count($this->getColumns())) {
            return 'array';
        }
        if ($this->getColumns()) {
            $first = $this->getColumns()[0];
            if (ColumnDefinition::isInteger($first)) {
                return 'integer';
            } else {
                if (ColumnDefinition::isBoolean($first)) {
                    return 'boolean';
                } else {
                    if (ColumnDefinition::isFloat($first)) {
                        return 'float';
                    } else {
                        return 'string';
                    }
                }
            }
        }
    }