Exemplo n.º 1
0
 public function pickFrom(GetOpt\GetOpt $optionsFromCommandLine)
 {
     if ($option = $optionsFromCommandLine->getOption($this->name)) {
         return T\Interval::parse($option);
     }
     return $this->default;
 }
Exemplo n.º 2
0
 public function pickFrom(GetOpt\GetOpt $optionsFromCommandLine)
 {
     $this->limit = $this->validate($optionsFromCommandLine->getOption($this->name));
     return $this;
 }
Exemplo n.º 3
0
 public function pickFrom(GetOpt\GetOpt $optionsFromCommandLine)
 {
     return new Recruiter\WaitStrategy($this->timeToWaitAtLeast, $this->validate($optionsFromCommandLine->getOption($this->name)));
 }
Exemplo n.º 4
0
 public function pickFrom(GetOpt\GetOpt $optionsFromCommandLine)
 {
     $this->bootstrapFilePath = $this->validate($optionsFromCommandLine->getOption($this->name));
     return $this;
 }
Exemplo n.º 5
0
 public function pickFrom(GetOpt\GetOpt $optionsFromCommandLine)
 {
     $recruiter = new Recruiter\Recruiter($this->validate($optionsFromCommandLine->getOption($this->name)));
     $recruiter->createCollectionsAndIndexes();
     return $recruiter;
 }