As said, if you are going to extend a class later you can always change it then.
But if you can avoid to use inheritance you should. It is better to use other patterns when designing, if possible.
Basically what to do is favor composition over inheritance and program to interfaces, not to implementations.
If you let classes just have one tightly defined purpose than you can composit objects instead of letting them inherit each other. If you use interfaces rather then inheritance you will most likley define small and effective interfaces. Then you will see that inheritance will reduce and therefore the need of protected will reduce to.
Example
interface sound {
public function makeSound();
}
class bark implements sound{
public function makeSound() {
return "Bark!!!";
}
}
class mew implements sound{
public function makeSound() {
return "Mewmew!!!";
}
}
class forLeggedAnimal {
private $sound;
public function forLeggedAnimal($sound){
$this->sound = $sound;
}
public function eat(){
echo $this->sound->makeSound();
}
}
$cat = new forLeggedAnimal(new mew());
$dog = new forLeggedAnimal(new bark());
I know this far from a perfect example. But it illustrates the technique and you can use this in many ways. For instance you can combine this with different creational patterns to build cats and dogs, it may not be so wise to have to know if a cat barks or mews.. But anyway.. it differs from having to make a base class and then extending it with a cat and a dog, and therefor have to make the "sound" method protected or overriding the public eat method
/Peter