Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Google
Cloud
Dev
Snippet
Parser
Snippet
addLocal
Google\Cloud\Dev\Snippet\Parser\Snippet::addLocal PHP Method
Snippet Class Documentation
Show file
Open project: GoogleCloudPlatform/gcloud-php
addLocal()
public
method
Add a local variable to make available in the snippet execution scope.
public
addLocal
(
string
$name
,
mixed
$value
) :
void
$name
string
The variable name
$value
mixed
The variable value
return
void
public function addLocal($name, $value) { $this->locals[$name] = $value; }
Snippet
__construct
addLocal
addUse
content
createReturnVar
file
identifier
index
insertAfterLine
invoke
jsonSerialize
line
name
regexReplace
replace
setLine