-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathSelectField.php
60 lines (52 loc) · 1004 Bytes
/
SelectField.php
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
<?php
namespace Aternos\Model\Query;
/**
* Class SelectField
*
* @package Aternos\Model\Query
*/
class SelectField extends Field
{
const COUNT = 0,
SUM = 1,
AVERAGE = 2;
/**
* @var string|null
*/
public ?string $alias = null;
/**
* @var int|null
*/
public ?int $function = null;
/**
* @var bool
*/
public bool $raw = false;
/**
* @param string|null $alias
* @return SelectField
*/
public function setAlias(?string $alias): SelectField
{
$this->alias = $alias;
return $this;
}
/**
* @param int|null $function
* @return SelectField
*/
public function setFunction(?int $function): SelectField
{
$this->function = $function;
return $this;
}
/**
* @param bool $raw
* @return SelectField
*/
public function setRaw(bool $raw = true): SelectField
{
$this->raw = $raw;
return $this;
}
}