Elastica\Aggregation\BucketScript::setScript PHP Method

setScript() public method

Set the script for this aggregation.
public setScript ( string $script )
$script string
    public function setScript($script)
    {
        return $this->setParam('script', $script);
    }