コード例 #1
0
ファイル: PhpFileTask.php プロジェクト: AnonymPHP/Cron
 /**
  * register the command
  *
  * @param string $command
  * @return $this
  */
 public function setCommand($command)
 {
     parent::setCommand($command);
     return $this;
 }
コード例 #2
0
ファイル: ConsoleTask.php プロジェクト: AnonymPHP/Cron
 /**
  * register the command
  *
  * @param string $command
  * @param string $base
  * @return $this
  */
 public function setCommand($command, $base = null)
 {
     $base = $base === null ? BASE : $base;
     parent::setCommand($this->resolveBase($base) . 'anonym ' . $command);
     return $this;
 }