flux-querybuilder/src/Functions/Last.php

21 lines
321 B
PHP
Raw Normal View History

2023-02-10 11:40:35 +01:00
<?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()
{
2023-02-10 11:42:29 +01:00
return '|> last(column: "' . (string)$this->column . '") ';
2023-02-10 11:40:35 +01:00
}
}