How to get private property in parent class into extended class?

Probably $attribute is declared as private in the super class, so you can’t access it directly from subclasses.