public static function create(Application $app, ReceiverInterface $receiver, EmitterInterface $emitter = null, $message = null, $url = null, \DateTime $expiration = null)
    {
        $mail = new static($app, $receiver, $emitter, $message);
        $mail->setButtonUrl($url);
        $mail->setExpiration($expiration);

        return $mail;
    }
public static function create(Application $app, ReceiverInterface $receiver, EmitterInterface $emitter = null, $message = null, $url = null, \DateTime $expiration = null)
    {
        $mail = new static($app, $receiver, $emitter, $message);
        $mail->setButtonUrl($url);
        $mail->setExpiration($expiration);

        return $mail;
    }
public static function create ( Application $ app , ReceiverInterface $ receiver , EmitterInterface $ emitter = null , $ message = null , $ url = null , \ DateTime $ expiration = null ) { $ mail = new static ( $ app , $ receiver , $ emitter , $ message ) ; $ mail -> setButtonUrl ( $ url ) ; $ mail -> setExpiration ( $ expiration ) ; return $ mail ; }
Creates a new Mail

@param Application       $app
@param ReceiverInterface $receiver
@param EmitterInterface  $emitter
@param string            $message
@param string            $url
@param \DateTime         $expiration

@return static
Creates a new Mail