Nette\PhpGenerator\Property::setName PHP Method

setName() public method

Deprecation:
public setName ( $name )
    public function setName($name)
    {
        $this->name = (string) $name;
        return $this;
    }

Usage Example

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