Nette\PhpGenerator\Property::setValue PHP Method

setValue() public method

public setValue ( $val ) : self
return self
    public function setValue($val)
    {
        $this->value = $val;
        return $this;
    }

Usage Example

Beispiel #1
0
 /**
  * @param  string  without $
  * @param  mixed
  * @return Property
  */
 public function addProperty($name, $value = NULL)
 {
     $property = new Property($name);
     return $this->properties[$name] = $property->setValue($value);
 }