Nette\PhpGenerator\Property::setValue PHP Méthode

setValue() public méthode

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

Usage Example

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