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