/** * Factory method for getting an instance of MEGA client with authentication * using a full user account. * * @param string $email * @param string $password * @return MEGA */ public static function create_from_login($email, $password) { $client = new MEGA(); $client->user_login_session($email, $password); return $client; }