src/mako/database/query/compilers/Compiler.php
protected function param($param, bool $enclose = true): string
	{
		if($param instanceof Raw)
		{
			return $this->raw($param);
		}
		elseif($param instanceof Subquery)
		{
			return $this->subquery($param, $enclose);
		}
		elseif($param instanceof DateTimeInterface)
		{
			$this->params[] = $param->format(static::$dateFormat);

			return '?';
		}

		$this->params[] = $param;

		return '?';
	}
protected function param($param, bool $enclose = true): string
	{
		if($param instanceof Raw)
		{
			return $this->raw($param);
		}
		elseif($param instanceof Subquery)
		{
			return $this->subquery($param, $enclose);
		}
		elseif($param instanceof DateTimeInterface)
		{
			$this->params[] = $param->format(static::$dateFormat);

			return '?';
		}

		$this->params[] = $param;

		return '?';
	}
protected function param ( $ param , bool $ enclose = true ) : string { if ( $ param instanceof Raw ) { return $ this -> raw ( $ param ) ; } elseif ( $ param instanceof Subquery ) { return $ this -> subquery ( $ param , $ enclose ) ; } elseif ( $ param instanceof DateTimeInterface ) { $ this -> params [ ] = $ param -> format ( static :: $ dateFormat ) ; return '?' ; } $ this -> params [ ] = $ param ; return '?' ; }
Returns raw SQL or a paramter placeholder.

@param  mixed  $param   Parameter
@param  bool   $enclose Should subqueries be enclosed in parentheses?
@return string
Returns raw SQL or a paramter placeholder .