Changeset View
Changeset View
Standalone View
Standalone View
src/parser/argument/workflow/PhutilArgumentWorkflow.php
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
class PhutilArgumentWorkflow extends Phobject { | class PhutilArgumentWorkflow extends Phobject { | ||||
private $name; | private $name; | ||||
private $synopsis; | private $synopsis; | ||||
private $specs = array(); | private $specs = array(); | ||||
private $examples; | private $examples; | ||||
private $help; | private $help; | ||||
private $argv; | |||||
final public function __construct() { | final public function __construct() { | ||||
$this->didConstruct(); | $this->didConstruct(); | ||||
} | } | ||||
public function setName($name) { | public function setName($name) { | ||||
$this->name = $name; | $this->name = $name; | ||||
return $this; | return $this; | ||||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | final public function setArguments(array $specs) { | ||||
$this->specs = $specs; | $this->specs = $specs; | ||||
return $this; | return $this; | ||||
} | } | ||||
final public function getArguments() { | final public function getArguments() { | ||||
return $this->specs; | return $this->specs; | ||||
} | } | ||||
final public function setArgv(PhutilArgumentParser $argv) { | |||||
$this->argv = $argv; | |||||
return $this; | |||||
} | |||||
final public function getArgv() { | |||||
return $this->argv; | |||||
} | |||||
protected function didConstruct() { | protected function didConstruct() { | ||||
return null; | return null; | ||||
} | } | ||||
public function isExecutable() { | public function isExecutable() { | ||||
return false; | return false; | ||||
} | } | ||||
Show All 17 Lines |