コード例 #1
0
ファイル: Du.php プロジェクト: phamviet/command-builder
 /**
  * @param string $dir
  */
 public function __construct($dir = '')
 {
     parent::__construct();
     if ($dir) {
         $this->arguments[0] = $dir;
     }
 }
コード例 #2
0
ファイル: Curl.php プロジェクト: phamviet/command-builder
 /**
  * @param string $url
  */
 public function __construct($url = '', $path = '')
 {
     parent::__construct($path);
     if ($url) {
         $this->setUrl($url);
     }
 }
コード例 #3
0
ファイル: Which.php プロジェクト: phamviet/command-builder
 /**
  * @param string $command
  */
 public function __construct($command)
 {
     parent::__construct();
     $this->arguments[0] = $command;
 }
コード例 #4
0
ファイル: Git.php プロジェクト: phamviet/command-builder
 /**
  * @param string $task
  * @param string $path
  */
 public function __construct($task, $path = '')
 {
     parent::__construct($path);
     $this->arguments[0] = $task;
 }