src/Offer/Offer.php
public function publish(\DateTimeInterface $publicationDate)
    {
        $this->guardPublish() ?: $this->apply(
            $this->createPublishedEvent($publicationDate)
        );
    }
public function publish(\DateTimeInterface $publicationDate)
    {
        $this->guardPublish() ?: $this->apply(
            $this->createPublishedEvent($publicationDate)
        );
    }
public function publish ( \ DateTimeInterface $ publicationDate ) { $ this -> guardPublish ( ) ? : $ this -> apply ( $ this -> createPublishedEvent ( $ publicationDate ) ) ; }
Publish the offer when it has workflowstatus draft.
@param \DateTimeInterface $publicationDate
Publish the offer when it has workflowstatus draft .