Add addLast() function
This commit is contained in:
parent
2257e4f9cd
commit
3d32bdb45d
6 changed files with 100 additions and 0 deletions
21
src/Functions/Last.php
Normal file
21
src/Functions/Last.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace Arendsen\FluxQueryBuilder\Functions;
|
||||
|
||||
class Last extends Base
|
||||
{
|
||||
/**
|
||||
* @var int $column
|
||||
*/
|
||||
private $column;
|
||||
|
||||
public function __construct(string $column = '_value')
|
||||
{
|
||||
$this->column = $column;
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return '|> last(column: ' . (string)$this->column . ') ';
|
||||
}
|
||||
}
|
||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue