bookingMarkingExists = $bookingMarkingExists; } /** * @return int */ public function execute(): int { $marking = mt_rand(20000, 99999); return !$this->bookingMarkingExists->execute($marking) ? $marking : self::execute(); } }