mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 04:24:16 +00:00
c3f153fe4b
Update Booking Logic Class Delete Booking Logic Class
27 lines
507 B
PHP
27 lines
507 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Bookings\Services;
|
|
|
|
|
|
use App\Models\Booking;
|
|
|
|
class ChecksIfBookingMarkingExists
|
|
{
|
|
|
|
/** @var Booking */
|
|
private $repository;
|
|
|
|
/**
|
|
* ChecksIfBookingMarkingExists constructor.
|
|
* @param Booking $repository
|
|
*/
|
|
public function __construct(Booking $repository)
|
|
{
|
|
$this->repository = $repository;
|
|
}
|
|
|
|
public function execute(int $marking): bool {
|
|
return $this->repository->where('marking', $marking)->exists();
|
|
}
|
|
|
|
} |