src/Place/Place.php
protected function applyPlaceCreated(PlaceCreated $placeCreated)
    {
        $this->mainLanguage = $placeCreated->getMainLanguage();
        $this->titles[$this->mainLanguage->getCode()] = $placeCreated->getTitle();
        $this->calendar = $placeCreated->getCalendar();
        $this->contactPoint = new ContactPoint();
        $this->bookingInfo = new BookingInfo();
        $this->typeId = $placeCreated->getEventType()->getId();
        $this->themeId = $placeCreated->getTheme() ? $placeCreated->getTheme()->getId() : null;
        $this->addresses[$this->mainLanguage->getCode()] = $placeCreated->getAddress();
        $this->placeId = $placeCreated->getPlaceId();
        $this->workflowStatus = WorkflowStatus::DRAFT();
    }
protected function applyPlaceCreated(PlaceCreated $placeCreated)
    {
        $this->mainLanguage = $placeCreated->getMainLanguage();
        $this->titles[$this->mainLanguage->getCode()] = $placeCreated->getTitle();
        $this->calendar = $placeCreated->getCalendar();
        $this->contactPoint = new ContactPoint();
        $this->bookingInfo = new BookingInfo();
        $this->typeId = $placeCreated->getEventType()->getId();
        $this->themeId = $placeCreated->getTheme() ? $placeCreated->getTheme()->getId() : null;
        $this->addresses[$this->mainLanguage->getCode()] = $placeCreated->getAddress();
        $this->placeId = $placeCreated->getPlaceId();
        $this->workflowStatus = WorkflowStatus::DRAFT();
    }
protected function applyPlaceCreated ( PlaceCreated $ placeCreated ) { $ this -> mainLanguage = $ placeCreated -> getMainLanguage ( ) ; $ this -> titles [ $ this -> mainLanguage -> getCode ( ) ] = $ placeCreated -> getTitle ( ) ; $ this -> calendar = $ placeCreated -> getCalendar ( ) ; $ this -> contactPoint = new ContactPoint ( ) ; $ this -> bookingInfo = new BookingInfo ( ) ; $ this -> typeId = $ placeCreated -> getEventType ( ) -> getId ( ) ; $ this -> themeId = $ placeCreated -> getTheme ( ) ? $ placeCreated -> getTheme ( ) -> getId ( ) : null ; $ this -> addresses [ $ this -> mainLanguage -> getCode ( ) ] = $ placeCreated -> getAddress ( ) ; $ this -> placeId = $ placeCreated -> getPlaceId ( ) ; $ this -> workflowStatus = WorkflowStatus :: DRAFT ( ) ; }
Apply the place created event.
@param PlaceCreated $placeCreated
Apply the place created event .