Ugly problems often require ugly solutions. Solving an ugly problem in a pure manner is bloody hard.
I did not develop the PHP we know today. Dozens, if not hundreds of people, developed PHP. I was simply the first developer.
We have things like protected properties. We have abstract methods. We have all this stuff that your computer science teacher told you you should be using. I don't care about this crap at all.