コード例 #1
0
ファイル: RetryLater.php プロジェクト: hillstill/sooh
 public function toNumStr()
 {
     if ($this->isDone) {
         return $this->maxForDone;
     } else {
         $this->dtNextTry = $this->dtNextTry + $this->arrSteps[$this->step] * $this->stepSize;
         return \Sooh\Base\NumStr::encode(array('dt' => $this->dtNextTry, 'step' => $this->step), $this->define);
     }
 }
コード例 #2
0
ファイル: CD.php プロジェクト: hillstill/sooh
 /**
  * @return string
  */
 public function toString()
 {
     return \Sooh\Base\NumStr::encode($this->r, $this->define);
 }