php terminology: difference between getters and public methods?

piedezext

New Member
My question is more about terminology then technicalities (or is it?). What's the difference between a getter method and a public method in a class? Are they one in the same or is there a distinction between them?I ask because I'm trying to learn best coding practices and this area seems grey to me. I was commenting my code out and noticed I had a big section called "Getters" and another big section called "Public Methods" and then I was like... "what's the diff?!". Thanks!
 
Back
Top