1 | <?php |
||
19 | class BucketScriptAggregation extends AbstractPipelineAggregation |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $script; |
||
25 | |||
26 | /** |
||
27 | * @param string $name |
||
28 | * @param array $bucketsPath |
||
29 | * @param string $script |
||
30 | */ |
||
31 | public function __construct($name, $bucketsPath, $script = null) |
||
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getScript() |
||
44 | |||
45 | /** |
||
46 | * @param string $script |
||
47 | */ |
||
48 | public function setScript($script) |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function getType() |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function getArray() |
||
82 | } |
||
83 |