function TemplateElement::setValue
Sets node's value
Parameters
mixed $value Value:
Return value
$this
1 call to TemplateElement::setValue()
- TemplateElement::setRawValue in vendor/
mck89/ peast/ lib/ Peast/ Syntax/ Node/ TemplateElement.php - Sets node's raw value that must be wrapped in templates quotes.
File
-
vendor/
mck89/ peast/ lib/ Peast/ Syntax/ Node/ TemplateElement.php, line 71
Class
- TemplateElement
- A node that represents a template element. For example `foo` and `bar` in: `foo${exp}bar`
Namespace
Peast\Syntax\NodeCode
public function setValue($value) {
$this->value = $value;
$this->rawValue = Utils::quoteLiteralString($value, "`");
return $this;
}