If I have an abstract Animal class with a $name property and constructor like this:abstract class Animal {   protected $name;   public function __construct($name) {      $this->name = $name;   }}And the classes who are instance of the Animal class uses make use of the $name property like this:class Cat extends Animal {   public function makeNoise() {      switch($this->name) {        ....      }      return Meow;   }    //More functions who will be using the $this->name property}Is it  better to use an protected getter method in the class or stay with the protected property?
Protected properties vs protected getters
object oriented;php;polymorphism