public function getArgumentRequiredCount() { return $this->requiredCount; }
/** * 验证输入 * @throws \RuntimeException */ public function validate() { if (count($this->arguments) < $this->definition->getArgumentRequiredCount()) { throw new \RuntimeException('Not enough arguments.'); } }