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\Collection;
use DateTimeInterface;
/**
* @author Toni Van de Voorde <[email protected]>
*/
final class Intersection extends AbstractCollection
{
* {@inheritdoc}
public function includes(DateTimeInterface $date): bool
foreach ($this->elements as $element) {
if (!$element->includes($date)) {
return false;
}
return true;