Differential D20452 Diff 48803 src/applications/fact/chart/PhabricatorChartFunctionArgumentParser.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fact/chart/PhabricatorChartFunctionArgumentParser.php
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | public function parseArgument( | ||||
return $this->parseArguments(); | return $this->parseArguments(); | ||||
} | } | ||||
public function setHaveAllArguments($have_all) { | public function setHaveAllArguments($have_all) { | ||||
$this->haveAllArguments = $have_all; | $this->haveAllArguments = $have_all; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getAllArguments() { | |||||
return array_values($this->argumentMap); | |||||
} | |||||
public function parseArguments() { | public function parseArguments() { | ||||
$have_count = count($this->rawArguments); | $have_count = count($this->rawArguments); | ||||
$want_count = count($this->argumentMap); | $want_count = count($this->argumentMap); | ||||
if ($this->haveAllArguments) { | if ($this->haveAllArguments) { | ||||
if ($want_count !== $have_count) { | if ($want_count !== $have_count) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |