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