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