src/mako/database/query/Query.php
protected function setOperation($query, string $operation)
	{
		if(($query instanceof Subquery) === false)
		{
			$query = new Subquery($query);
		}

		$this->setOperations[] =
		[
			'query'     => $query,
			'operation' => $operation,
		];

		return $this;
	}
protected function setOperation($query, string $operation)
	{
		if(($query instanceof Subquery) === false)
		{
			$query = new Subquery($query);
		}

		$this->setOperations[] =
		[
			'query'     => $query,
			'operation' => $operation,
		];

		return $this;
	}
protected function setOperation ( $ query , string $ operation ) { if ( ( $ query instanceof Subquery ) === false ) { $ query = new Subquery ( $ query ) ; } $ this -> setOperations [ ] = [ 'query' => $ query , 'operation' => $ operation , ] ; return $ this ; }
Adds a set operation.

@param  \Closure|\mako\database\query\Query|\mako\database\query\Subquery $query     Query
@param  string                                                            $operation Operation
@return $this
Adds a set operation .