示例#1
0
 /**
  * Add a property to the parameter
  *
  * @param Parameter $property Properties to set
  *
  * @return self
  */
 public function addProperty(Parameter $property)
 {
     $this->properties[$property->getName()] = $property;
     $property->setParent($this);
     $this->propertiesCache = null;
     return $this;
 }
示例#2
0
 /**
  * Add a parameter to the command
  *
  * @param Parameter $param Parameter to add
  *
  * @return self
  */
 public function addParam(Parameter $param)
 {
     $this->parameters[$param->getName()] = $param;
     $param->setParent($this);
     return $this;
 }