src/mako/database/connections/Connection.php
public function first(string $query, array $params = [], ...$fetchMode)
	{
		$prepared = $this->prepare($query, $params);

		$this->execute($prepared);

		if(!empty($fetchMode))
		{
			$prepared['statement']->setFetchMode(...$fetchMode);
		}

		return $prepared['statement']->fetch();
	}
public function first(string $query, array $params = [], ...$fetchMode)
	{
		$prepared = $this->prepare($query, $params);

		$this->execute($prepared);

		if(!empty($fetchMode))
		{
			$prepared['statement']->setFetchMode(...$fetchMode);
		}

		return $prepared['statement']->fetch();
	}
public function first ( string $ query , array $ params = [ ] , ... $ fetchMode ) { $ prepared = $ this -> prepare ( $ query , $ params ) ; $ this -> execute ( $ prepared ) ; if ( ! empty ( $ fetchMode ) ) { $ prepared [ 'statement' ] -> setFetchMode ( ... $ fetchMode ) ; } return $ prepared [ 'statement' ] -> fetch ( ) ; }
Returns the first row of the result set.

@param  string $query        SQL query
@param  array  $params       Query params
@param  mixed  ...$fetchMode Fetch mode
@return mixed
Returns the first row of the result set .