after = $after; $this->inc = $inc; } /** * Passes if $date is after $after * * {@inheritdoc} */ public function test(\DateTimeInterface $date) { if ($this->inc) { return $date >= $this->after; } return $date > $this->after; } /** * @return \DateTimeInterface */ public function getAfter() { return $this->after; } /** * @return bool */ public function isInc() { return $this->inc; } }