AbstractField.php
1 year ago
CronExpression.php
8 months ago
DayOfMonthField.php
1 year ago
DayOfWeekField.php
1 year ago
FieldFactory.php
1 year ago
FieldFactoryInterface.php
1 year ago
FieldInterface.php
1 year ago
HoursField.php
1 year ago
MinutesField.php
1 year ago
MonthField.php
1 year ago
index.php
1 year ago
FieldInterface.php
12 lines
| 1 | <?php |
| 2 | declare(strict_types=1); |
| 3 | namespace Cron; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use DateTimeInterface; |
| 6 | interface FieldInterface |
| 7 | { |
| 8 | public function isSatisfiedBy(DateTimeInterface $date, $value, bool $invert): bool; |
| 9 | public function increment(DateTimeInterface &$date, $invert = false, $parts = null): FieldInterface; |
| 10 | public function validate(string $value): bool; |
| 11 | } |
| 12 |