\Elastica\ScriptScript

Inline script.

Summary

Methods
Properties
Constants
__construct()
setScript()
getScript()
No public properties found
No constants found
getScriptTypeArray()
No protected properties found
N/A
No private methods found
$_scriptCode
N/A

Properties

$_scriptCode

$_scriptCode : string

Type

string

Methods

__construct()

__construct(string  $scriptCode, array|null  $params = null, string|null  $lang = null, string|null  $documentId = null) 

Parameters

string $scriptCode

Script source code

array|null $params
string|null $lang
string|null $documentId

Document ID the script action should be performed on (only relevant in update context)

setScript()

setScript(string  $scriptCode) : $this

Parameters

string $scriptCode

Returns

$this

getScript()

getScript() : string

Returns

string

getScriptTypeArray()

getScriptTypeArray() 

{@inheritdoc}