diff --git a/modules/opd_podcast/src/Episode.php b/modules/opd_podcast/src/Episode.php index dc4774ef5..00a207a72 100644 --- a/modules/opd_podcast/src/Episode.php +++ b/modules/opd_podcast/src/Episode.php @@ -12,7 +12,7 @@ final class Episode extends Node implements NodeInterface { public const NODE_TYPE = 'podcast_episode'; public function getGuests(): Guests { - return Guests::new($this->get('field_podcast_guests')->referencedEntities()); + return Guests::fromGuests($this->get('field_podcast_guests')->referencedEntities()); } } diff --git a/modules/opd_podcast/src/Guests.php b/modules/opd_podcast/src/Guests.php index 62ed08d0f..5ca818613 100644 --- a/modules/opd_podcast/src/Guests.php +++ b/modules/opd_podcast/src/Guests.php @@ -41,7 +41,7 @@ final class Guests implements \Countable, \IteratorAggregate, \Stringable { /** * @param Guest[] $guests */ - public static function new(array $guests): self { + public static function fromGuests(array $guests): self { return new self($guests); } diff --git a/modules/opd_presentations/src/Events.php b/modules/opd_presentations/src/Events.php index ef1029ab2..b509d4de6 100644 --- a/modules/opd_presentations/src/Events.php +++ b/modules/opd_presentations/src/Events.php @@ -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); } diff --git a/modules/opd_presentations/src/Presentation.php b/modules/opd_presentations/src/Presentation.php index 330e960fe..cc209969f 100644 --- a/modules/opd_presentations/src/Presentation.php +++ b/modules/opd_presentations/src/Presentation.php @@ -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');