Пример #1
0
 /** @return Property */
 public function addProperty($name, $value = null)
 {
     $property = new Property();
     return $this->properties[$name] = $property->setName($name)->setValue($value);
 }
Пример #2
0
addConst($name,$value){$this->consts[$name]=$value;return$this;}function
addProperty($name,$value=NULL){$property=new
Property;return$this->properties[$name]=$property->setName($name)->setValue($value);}function