I don't know is this the best way but it works. For more information you may look at the link: http://www.php.net/manual/en/ref.classobj.php
public function __construct()
{
parent::__construct(); // output: sub
echo $this->name . "\n"; // output: sub
echo $this->getParentProp('name'); //output: base
}
public function getParentProp($name)
{
$parent = get_class_vars(get_parent_class($this));
return $parent[$name];
}