-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSelectField.php
More file actions
64 lines (56 loc) · 1.3 KB
/
SelectField.php
File metadata and controls
64 lines (56 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
namespace Aternos\Model\Query;
/**
* Class SelectField
*
* @package Aternos\Model\Query
*/
class SelectField extends Field
{
/** @deprecated */
const AggregateFunction COUNT = AggregateFunction::COUNT;
/** @deprecated */
const AggregateFunction SUM = AggregateFunction::SUM;
/** @deprecated */
const AggregateFunction AVERAGE = AggregateFunction::AVERAGE;
/** @deprecated */
const AggregateFunction MIN = AggregateFunction::MIN;
/** @deprecated */
const AggregateFunction MAX = AggregateFunction::MAX;
/**
* @var string|null
*/
public ?string $alias = null;
public ?AggregateFunction $function = null;
/**
* @var bool
*/
public bool $raw = false;
/**
* @param string|null $alias
* @return $this
*/
public function setAlias(?string $alias): static
{
$this->alias = $alias;
return $this;
}
/**
* @param AggregateFunction $function
* @return $this
*/
public function setFunction(AggregateFunction $function): static
{
$this->function = $function;
return $this;
}
/**
* @param bool $raw
* @return $this
*/
public function setRaw(bool $raw = true): static
{
$this->raw = $raw;
return $this;
}
}