for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Adlogix\EventScheduler\TemporalExpression;
use Adlogix\EventScheduler\ValueObject\MonthDay;
use DateTimeInterface;
/**
* @author Toni Van de Voorde <[email protected]>
*/
final class DayInMonth implements TemporalExpressionInterface
{
* @var MonthDay
protected $day;
* @param int $day
public function __construct(int $day)
$this->day = new MonthDay($day);
}
* {@inheritdoc}
public function includes(DateTimeInterface $date): bool
return $this->day->equals(MonthDay::fromDateTime($date));