Table of Contents
Methods
-
__construct()
: mixed
-
add()
: void
-
count()
: int
-
diff()
: ResourceCollection
-
getCollectionItems()
: array<string|int, mixed>
-
getEntityIds()
: array<string|int, mixed>
-
getFirstCollectionItem()
: Resource|null
-
getIterator()
: array<string|int, resource>
-
isEmpty()
: bool
-
isEqual()
: bool
-
mapFromArray()
: self
-
mergeSlotRanges()
: RangeCollection
-
toArray()
: array<string|int, mixed>
__construct()
public
__construct(Resource ...$resources) : mixed
Parameters
-
$resources
: Resource
-
add()
public
add(EntityInterface $entity) : void
Parameters
-
$entity
: EntityInterface
-
count()
public
count() : int
diff()
public
diff(ResourceCollection $collectionToCompare) : ResourceCollection
Parameters
-
$collectionToCompare
: ResourceCollection
-
getCollectionItems()
public
getCollectionItems() : array<string|int, mixed>
Return values
array<string|int, mixed>
getEntityIds()
public
getEntityIds() : array<string|int, mixed>
Return values
array<string|int, mixed>
getFirstCollectionItem()
public
getFirstCollectionItem() : Resource|null
getIterator()
public
getIterator() : array<string|int, resource>
Return values
array<string|int, resource>
isEmpty()
public
isEmpty() : bool
isEqual()
public
isEqual(BaseEntityCollection $collectionToCompare) : bool
Parameters
-
$collectionToCompare
: BaseEntityCollection
-
mapFromArray()
public
static mapFromArray(array<string|int, mixed> $props) : self
Parameters
-
$props
: array<string|int, mixed>
-
mergeSlotRanges()
public
mergeSlotRanges(DateTimeImmutable $date) : RangeCollection
Parameters
-
$date
: DateTimeImmutable
-
toArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>