BConnect POS - Reference PHP

SaleRepository extends ServiceEntityRepository
in package

Tags
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

Methods

__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'
Return values
Sale|null

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'
Return values
Sale|null

getTotalRevenueForPeriod()

public getTotalRevenueForPeriod(int $pointOfSaleId, DateTimeImmutable $startInclusive, DateTimeImmutable $endExclusive) : float
Parameters
$pointOfSaleId : int
$startInclusive : DateTimeImmutable
$endExclusive : DateTimeImmutable
Tags
throws
NonUniqueResultException
NoResultException
Return values
float
On this page

Search results