This commit is contained in:
Oliver Davies 2025-06-12 02:10:09 +01:00
parent 6fe88456ca
commit aa08f702b2
4 changed files with 4 additions and 4 deletions

View file

@ -33,7 +33,7 @@ readonly final class Events implements \IteratorAggregate {
/**
* @param Event[] $events
*/
public static function new(array $events): self {
public static function fromEvents(array $events): self {
return new self($events);
}

View file

@ -12,7 +12,7 @@ final class Presentation extends Node implements NodeInterface {
public const NODE_TYPE = 'presentation';
public function getPastEvents(): Events {
$events = Events::new($this->get('field_events')->referencedEntities());
$events = Events::fromEvents($this->get('field_events')->referencedEntities());
$today = strtotime('today');