degree = $degree; } parent::__construct($base); } /** * @param int $attempt * * @return int */ public function getWaitTime($attempt) { return (int) pow($attempt, $this->degree) * $this->base; } /** * @return int|null */ public function getDegree() { return $this->degree; } }