LifecycleStateShare example

public static function fromNotification(Notification $notification): self
    {
        $options = new self();
        $options->specificContent(new ShareContentShare($notification->getSubject()));

        if ($notification->getContent()) {
            $options->specificContent(new ShareContentShare($notification->getContent()));
        }

        $options->visibility(new VisibilityShare());
        $options->lifecycleState(new LifecycleStateShare());

        return $options;
    }

    /** * @return $this */
    public function contentCertificationRecord(string $contentCertificationRecord)static
    {
        $this->options['contentCertificationRecord'] = $contentCertificationRecord;

        
Home | Imprint | This part of the site doesn't use cookies.