/** * Static method may fail if there are issues surrounding SSL certificates. * In such cases, set up the object as needed, and then call newEWS(). * * @param string $email * @param string $password * @param string $username If left blank, the email provided will be used. * * @return EwsConnection */ public static function getConnection($email, $password, $username = null) { $auto = new self($email, $password, $username); return $auto->createNewConnection(); }