fit-ph-method function

Fit method for ph class