RoutesCollection
extends BaseCollection
Table of Contents
-
$objectType
: string
-
$prefix
: string
-
__construct()
: mixed
-
createDefaultIndexes()
: void
-
find()
: array<string|int, mixed>
-
hasOneById()
: bool
-
replace()
: bool
$objectType
protected
string
$objectType
= \Airlay\Library\Entities\RouteEntity::class
$prefix
private
string
$prefix
= 'routes_'
__construct()
public
__construct(string $name) : mixed
Parameters
-
$name
: string
-
Return values
mixed
—
createDefaultIndexes()
public
createDefaultIndexes() : void
Return values
void
—
find()
public
find(array<string|int, mixed> $filter[, array<string|int, mixed> $options = [] ]) : array<string|int, mixed>
Parameters
-
$filter
: array<string|int, mixed>
-
-
$options
: array<string|int, mixed>
= []
-
Return values
array<string|int, mixed>
—
hasOneById()
public
hasOneById(ObjectId $id) : bool
Parameters
-
$id
: ObjectId
-
Return values
bool
—
replace()
public
replace(RouteEntity $route, bool $upsert) : bool
Parameters
-
$route
: RouteEntity
-
-
$upsert
: bool
-
Return values
bool
—