If the judge does not grant your request for a PFA order in Pennsylvania, it depends on at what stage of the proceedings you are in. If you're at the stage where you're seeking a Temporary Protection From Abuse order, like in the early stage of the case. If the judge were to say not find that you've met your burden, even to be granted a Temporary PFA order, the court would issue a notice of a final hearing, although the term final is a term used loosely for within 10 days of your seeking the initial Temporary Order.
At that final hearing date, you would have the right to request that the court through a trial grant a Final PFA. A Final PFA could potentially be issued at that hearing date. If you are at a stage where it's the final hearing, and if the court were not to issue a PFA for you, say, because you went to trial and the court found that you didn't meet your burden of proof by a preponderance of the evidence, you would have 10 days from the date to request that the judge reconsider the matter through what's called a motion for reconsideration, and you'd have 30 days from the date to appeal to the Pennsylvania superior court to seek recourse.
Having an experienced Pennsylvania PFA attorney will help you best understand and navigate the PFA process, and they should be involved from as early as possible in the case.