public function setName($name) { $this->name = (string) $name; return $this; }
/** * @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); }