Since php 5.3 we can get the static type of the extending class