Changeset View
Changeset View
Standalone View
Standalone View
src/toolset/ArcanistWorkflowArgument.php
<?php | <?php | ||||
final class ArcanistWorkflowArgument | final class ArcanistWorkflowArgument | ||||
extends Phobject { | extends Phobject { | ||||
private $key; | private $key; | ||||
private $help; | private $help; | ||||
private $wildcard; | private $wildcard; | ||||
private $parameter; | |||||
private $isPathArgument; | |||||
public function setKey($key) { | public function setKey($key) { | ||||
$this->key = $key; | $this->key = $key; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getKey() { | public function getKey() { | ||||
return $this->key; | return $this->key; | ||||
Show All 12 Lines | public function getPhutilSpecification() { | ||||
$spec = array( | $spec = array( | ||||
'name' => $this->getKey(), | 'name' => $this->getKey(), | ||||
); | ); | ||||
if ($this->getWildcard()) { | if ($this->getWildcard()) { | ||||
$spec['wildcard'] = true; | $spec['wildcard'] = true; | ||||
} | } | ||||
$parameter = $this->getParameter(); | |||||
if ($parameter !== null) { | |||||
$spec['param'] = $parameter; | |||||
} | |||||
return $spec; | return $spec; | ||||
} | } | ||||
public function setHelp($help) { | public function setHelp($help) { | ||||
$this->help = $help; | $this->help = $help; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getHelp() { | public function getHelp() { | ||||
return $this->help; | return $this->help; | ||||
} | } | ||||
public function setParameter($parameter) { | |||||
$this->parameter = $parameter; | |||||
return $this; | |||||
} | |||||
public function getParameter() { | |||||
return $this->parameter; | |||||
} | |||||
public function setIsPathArgument($is_path_argument) { | |||||
$this->isPathArgument = $is_path_argument; | |||||
return $this; | |||||
} | |||||
public function getIsPathArgument() { | |||||
return $this->isPathArgument; | |||||
} | |||||
} | } | ||||