BeforeConstraint extends Constraint
Table of Contents
Methods
- __construct() : mixed
- getBefore() : DateTimeInterface
- isInc() : bool
- stopsTransformer() : bool
- test() : bool
- Passes if $date is before $before
Methods
__construct()
public
__construct(DateTimeInterface $before[, bool $inc = false ]) : mixed
Parameters
- $before : DateTimeInterface
- $inc : bool = false
-
Include date if it equals $before.
getBefore()
public
getBefore() : DateTimeInterface
Return values
DateTimeInterfaceisInc()
public
isInc() : bool
Return values
boolstopsTransformer()
public
stopsTransformer() : bool
Return values
booltest()
Passes if $date is before $before
public
test(DateTimeInterface $date) : bool
Parameters
- $date : DateTimeInterface