src/Place/Place.php
public static function createPlace(
        $id,
        Language $mainLanguage,
        Title $title,
        EventType $eventType,
        Address $address,
        CalendarInterface $calendar,
        Theme $theme = null,
        DateTimeImmutable $publicationDate = null
    ) {
        $place = new self();
        $place->apply(new PlaceCreated(
            $id,
            $mainLanguage,
            $title,
            $eventType,
            $address,
            $calendar,
            $theme,
            $publicationDate
        ));

        return $place;
    }
public static function createPlace(
        $id,
        Language $mainLanguage,
        Title $title,
        EventType $eventType,
        Address $address,
        CalendarInterface $calendar,
        Theme $theme = null,
        DateTimeImmutable $publicationDate = null
    ) {
        $place = new self();
        $place->apply(new PlaceCreated(
            $id,
            $mainLanguage,
            $title,
            $eventType,
            $address,
            $calendar,
            $theme,
            $publicationDate
        ));

        return $place;
    }
public static function createPlace ( $ id , Language $ mainLanguage , Title $ title , EventType $ eventType , Address $ address , CalendarInterface $ calendar , Theme $ theme = null , DateTimeImmutable $ publicationDate = null ) { $ place = new self ( ) ; $ place -> apply ( new PlaceCreated ( $ id , $ mainLanguage , $ title , $ eventType , $ address , $ calendar , $ theme , $ publicationDate ) ) ; return $ place ; }
Factory method to create a new Place.

@todo Refactor this method so it can be called create. Currently the
normal behavior for create is taken by the legacy udb2 logic.
The PlaceImportedFromUDB2 could be a superclass of Place.

@param string $id
@param Language $mainLanguage
@param Title $title
@param EventType $eventType
@param Address $address
@param CalendarInterface $calendar
@param Theme|null $theme
@param DateTimeImmutable|null $publicationDate

@return self
Factory method to create a new Place .