DateTimeCollection
implements
IteratorAggregate, Countable
Table of Contents
Interfaces
- IteratorAggregate
- Countable
Methods
-
add()
: void
-
count()
: int
-
diff()
: self
-
getItems()
: array<string|int, mixed>
-
getIterator()
: array<string|int, DateTimeImmutable>
-
isEmpty()
: bool
-
isEqual()
: bool
add()
public
add(DateTimeImmutable ...$dates) : void
Parameters
-
$dates
: DateTimeImmutable
-
count()
public
count() : int
diff()
public
diff(DateTimeCollection $dateTimeCollection) : self
Parameters
-
$dateTimeCollection
: DateTimeCollection
-
getItems()
public
getItems() : array<string|int, mixed>
Return values
array<string|int, mixed>
getIterator()
public
getIterator() : array<string|int, DateTimeImmutable>
Return values
array<string|int, DateTimeImmutable>
isEmpty()
public
isEmpty() : bool
isEqual()
public
isEqual(DateTimeCollection $dateTimeCollection) : bool
Parameters
-
$dateTimeCollection
: DateTimeCollection
-