BookingRepositoryInterface
Table of Contents
Methods
-
getById()
: Booking|null
-
getByIdForManager()
: Booking|null
-
getIntersectionsList()
: BookingCollection
-
getList()
: BookingCollection
-
getQuery()
: Query
-
remove()
: void
-
save()
: int
getById()
public
getById(int $id[, int $userId = 0 ]) : Booking|null
Parameters
-
$id
: int
-
-
$userId
: int
= 0
-
public
getByIdForManager(int $id) : Booking|null
Parameters
-
$id
: int
-
getIntersectionsList()
public
getIntersectionsList(Booking $booking[, int|null $userId = null ][, int $limit = 1 ]) : BookingCollection
Parameters
-
$booking
: Booking
-
-
$userId
: int|null
= null
-
-
$limit
: int
= 1
-
getList()
public
getList([int|null $limit = null ][, int|null $offset = null ][, FilterInterface|null $filter = null ][, array<string|int, mixed>|null $sort = null ][, array<string|int, mixed>|null $select = null ][, int|null $userId = null ]) : BookingCollection
Parameters
-
$limit
: int|null
= null
-
-
$offset
: int|null
= null
-
-
$filter
: FilterInterface|null
= null
-
-
$sort
: array<string|int, mixed>|null
= null
-
-
$select
: array<string|int, mixed>|null
= null
-
-
$userId
: int|null
= null
-
getQuery()
public
getQuery() : Query
remove()
public
remove(int $id) : void
Parameters
-
$id
: int
-
save()
public
save(Booking $booking) : int
Parameters
-
$booking
: Booking
-