src/Model/Notification.php
public function withExpiration(Expiration $expiration = null): Notification
    {
        $cloned = clone $this;

        $cloned->expiration = $expiration;

        return $cloned;
    }
public function withExpiration(Expiration $expiration = null): Notification
    {
        $cloned = clone $this;

        $cloned->expiration = $expiration;

        return $cloned;
    }
Set expiration

@param Expiration $expiration

@return Notification