src/mako/database/query/compilers/Compiler.php
protected function compileColumnName(string $column): string
	{
		if($this->hasJsonPath($column))
		{
			$segments = explode(static::JSON_PATH_SEPARATOR, $column);

			$column = $this->escapeColumn(array_shift($segments));

			return $this->buildJsonGet($column, $segments);
		}

		return $this->escapeColumn($column);
	}
protected function compileColumnName(string $column): string
	{
		if($this->hasJsonPath($column))
		{
			$segments = explode(static::JSON_PATH_SEPARATOR, $column);

			$column = $this->escapeColumn(array_shift($segments));

			return $this->buildJsonGet($column, $segments);
		}

		return $this->escapeColumn($column);
	}
protected function compileColumnName ( string $ column ) : string { if ( $ this -> hasJsonPath ( $ column ) ) { $ segments = explode ( static :: JSON_PATH_SEPARATOR , $ column ) ; $ column = $ this -> escapeColumn ( array_shift ( $ segments ) ) ; return $ this -> buildJsonGet ( $ column , $ segments ) ; } return $ this -> escapeColumn ( $ column ) ; }
Compiles a column name.

@param  string $column Column name
@return string
Compiles a column name .