public static function transport(Mail\Transport\TransportInterface $transport = null) { if (null !== $transport) { self::$transport = $transport; } elseif (!self::$transport) { self::setDefaultTransport(); } return self::$transport; }
public static function setTransport(Mail\Transport\TransportInterface $transport) { self::$transport = $transport; }