setVarName($this->getName()); $this->setDefault(); $this->setName($name); $this->setDescription($description); } /** * @inheritDoc */ public function getVarName (): string { return $this->varName; } /** * Set the variable name in parse output * * @param string $varName The variable name * * @return $this */ public function setVarName (string $varName): self { $this->varName = $varName; return $this; } /** * @inheritDoc */ public function getDefault () { return $this->_default; } /** * Set the default value for the argument. Null if none * * @param mixed $default The default value * * @return $this */ public function setDefault ($default = null): self { $this->_default = $default; return $this; } /** * @inheritDoc */ public function getName (): string { return $this->name; } /** * Set the argument name in help * * @param string $name The argument name in help * * @return $this */ public function setName (string $name): self { $this->name = $name; return $this; } /** * @inheritDoc */ public function getDescription (): ?string { return $this->description; } /** * Set the argument description in help * * @param string|null $description The argument description * * @return $this */ public function setDescription (?string $description): self { $this->description = $description; return $this; } }