Consider the code below:
name;
You made the instance variable protected, this means extending classes can overwrite it. If you want to prevent that use private.
http://www.php.net/manual/en/language.oop5.visibility.php