Rename namespace Function keyword to Functions to prevent errors
Signed-off-by: davidarendsen <davidarendsen@hey.com>
This commit is contained in:
parent
4c1a1a0af8
commit
79edee7400
19 changed files with 31 additions and 31 deletions
22
src/Functions/Map.php
Normal file
22
src/Functions/Map.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace Arendsen\FluxQueryBuilder\Functions;
|
||||
|
||||
class Map extends Base {
|
||||
|
||||
/**
|
||||
* @var array $query
|
||||
*/
|
||||
private $query;
|
||||
|
||||
public function __construct(string $query)
|
||||
{
|
||||
$this->query = $query;
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return '|> map(fn: (r) => ({ ' . $this->query . ' })) ';
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue