SaleRepository
extends ServiceEntityRepository
-
extends
-
Table of Contents
Methods
-
__construct()
: mixed
-
find()
: Sale|null
-
findAll()
: array<string|int, Sale>
-
findBy()
: array<string|int, Sale>
-
findOneBy()
: Sale|null
-
getTotalRevenueForPeriod()
: float
__construct()
public
__construct(ManagerRegistry $registry) : mixed
Parameters
-
$registry
: ManagerRegistry
-
find()
public
find(mixed $id[, mixed $lockMode = = 'null' ][, mixed $lockVersion = = 'null' ]) : Sale|null
Parameters
-
$id
: mixed
-
-
$lockMode
: mixed
= = 'null'
-
-
$lockVersion
: mixed
= = 'null'
-
findAll()
public
findAll() : array<string|int, Sale>
Return values
array<string|int, Sale>
findBy()
public
findBy(array<string|int, mixed> $criteria[, array<string|int, mixed> $orderBy = = 'null' ][, mixed $limit = = 'null' ][, mixed $offset = = 'null' ]) : array<string|int, Sale>
Parameters
-
$criteria
: array<string|int, mixed>
-
-
$orderBy
: array<string|int, mixed>
= = 'null'
-
-
$limit
: mixed
= = 'null'
-
-
$offset
: mixed
= = 'null'
-
Return values
array<string|int, Sale>
findOneBy()
public
findOneBy(array<string|int, mixed> $criteria[, array<string|int, mixed> $orderBy = = 'null' ]) : Sale|null
Parameters
-
$criteria
: array<string|int, mixed>
-
-
$orderBy
: array<string|int, mixed>
= = 'null'
-
getTotalRevenueForPeriod()
public
getTotalRevenueForPeriod(int $pointOfSaleId, DateTimeImmutable $startInclusive, DateTimeImmutable $endExclusive) : float
Parameters
-
$pointOfSaleId
: int
-
-
$startInclusive
: DateTimeImmutable
-
-
$endExclusive
: DateTimeImmutable
-
-
throws
-
NonUniqueResultException
-
NoResultException