1 | <?php |
||
11 | class Lql extends LqlAbstract |
||
12 | { |
||
13 | /** |
||
14 | * @var \Kwkm\MkLiveStatusClient\LqlObject |
||
15 | */ |
||
16 | private $lqlObject; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $table; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $authUser; |
||
27 | |||
28 | /** |
||
29 | * 初期化 |
||
30 | * |
||
31 | * @return \Kwkm\MkLiveStatusClient\Lql |
||
32 | */ |
||
33 | 42 | public function reset() |
|
43 | |||
44 | /** |
||
45 | * 取得カラムの指定 |
||
46 | * |
||
47 | * @param Column $column |
||
48 | * @return \Kwkm\MkLiveStatusClient\Lql |
||
49 | * @throw \InvalidArgumentException if the provided argument is not of type 'string'. |
||
50 | */ |
||
51 | 23 | public function column(Column $column) |
|
57 | |||
58 | /** |
||
59 | * ヘッダ情報を取得するかの設定 |
||
60 | * |
||
61 | * @param boolean $boolean |
||
62 | * @return \Kwkm\MkLiveStatusClient\Lql |
||
63 | * @throw \InvalidArgumentException if the provided argument is not of type 'boolean'. |
||
64 | */ |
||
65 | 1 | public function headers($boolean) |
|
66 | { |
||
67 | 1 | $this->lqlObject->setHeader($boolean); |
|
68 | |||
69 | 1 | return $this; |
|
70 | } |
||
71 | |||
72 | /** |
||
73 | * フィルタの指定 |
||
74 | * |
||
75 | * @param \Kwkm\MkLiveStatusClient\Filter $filter |
||
76 | * @return \Kwkm\MkLiveStatusClient\Lql |
||
77 | * @throw \InvalidArgumentException if the provided argument is not of type 'string'. |
||
78 | */ |
||
79 | 29 | public function filter(Filter $filter) |
|
85 | |||
86 | /** |
||
87 | * Stats の指定 |
||
88 | * @param \Kwkm\MkLiveStatusClient\Stats $stats |
||
89 | * @return \Kwkm\MkLiveStatusClient\Lql |
||
90 | * @throw \InvalidArgumentException if the provided argument is not of type 'string'. |
||
91 | */ |
||
92 | 11 | public function stats(Stats $stats) |
|
98 | |||
99 | /** |
||
100 | * パラメータの指定 |
||
101 | * @param string $parameter |
||
102 | * @return \Kwkm\MkLiveStatusClient\Lql |
||
103 | * @throw \InvalidArgumentException if the provided argument is not of type 'string'. |
||
104 | */ |
||
105 | 1 | public function parameter($parameter) |
|
106 | { |
||
107 | 1 | $this->lqlObject->appendParameter($parameter); |
|
108 | |||
109 | 1 | return $this; |
|
110 | } |
||
111 | |||
112 | /** |
||
113 | * OutputFormat の指定 |
||
114 | * @param string $outputFormat |
||
115 | * @return \Kwkm\MkLiveStatusClient\Lql |
||
116 | * @throw \InvalidArgumentException if the provided argument is not of type 'string'. |
||
117 | */ |
||
118 | 1 | public function outputFormat($outputFormat) |
|
119 | { |
||
120 | 1 | $this->lqlObject->setOutputFormat($outputFormat); |
|
121 | |||
122 | 1 | return $this; |
|
123 | } |
||
124 | |||
125 | /** |
||
126 | * Limit の指定 |
||
127 | * @param integer $limit |
||
128 | * @return \Kwkm\MkLiveStatusClient\Lql |
||
129 | * @throw \InvalidArgumentException if the provided argument is not of type 'integer'. |
||
130 | */ |
||
131 | 1 | public function limit($limit) |
|
132 | { |
||
133 | 1 | $this->lqlObject->setLimit($limit); |
|
134 | |||
135 | 1 | return $this; |
|
136 | } |
||
137 | |||
138 | /** |
||
139 | * Lqlの実行テキストの作成 |
||
140 | * @return string |
||
141 | */ |
||
142 | 40 | public function build() |
|
146 | |||
147 | /** |
||
148 | * コンストラクタ |
||
149 | */ |
||
150 | 42 | public function __construct($table, $authUser = null) |
|
156 | } |
||
157 |