function Property::setMethod
Sets the property method flag that is true when the property is a method
Parameters
bool $method Method flag:
Return value
$this
1 method overrides Property::setMethod()
- AssignmentProperty::setMethod in vendor/
mck89/ peast/ lib/ Peast/ Syntax/ Node/ AssignmentProperty.php - Sets the property method flag that is true when the property is a method
File
-
vendor/
mck89/ peast/ lib/ Peast/ Syntax/ Node/ Property.php, line 182
Class
- Property
- A node that represents a property in an object literal. For example "b" in: a = {b: 1}
Namespace
Peast\Syntax\NodeCode
public function setMethod($method) {
$this->method = (bool) $method;
return $this;
}