اتفاقا من هم دنبال این موضوع بودم. سرچ کردم و به دردبخورترین راه حل این بود که اون property ها رو توی متد constructor والد مقدار بدید:
class ParentClass {
public $options;
public function __construct() {
$this->options = array(
'option1'=>'setting1'
);
}
//The rest of the functions would follow
}
class ChildClass extends ParentClass {
public function __construct() {
parent::__construct();
$this->options['option2'] = 'setting2';
}
//The rest of the functions would follow
}
این رو یکی اینجا پیشنهاد کرده.