Class Food is undefined in your example. Normally by how extending works, there actually is no class Food, there is only Meat in $this - but that should be no problem because Meat has everything Food has.
You need to set Food::$var and it is static? If so parent::$var = 'value' otherwise, you cannot set an instance variable for a parent. It merely exists in the child via $this->var
Foodis undefined in your example. Normally by how extending works, there actually is no classFood, there is onlyMeatin$this- but that should be no problem becauseMeathas everythingFoodhas.Food::$varand it is static? If soparent::$var = 'value'otherwise, you cannot set an instance variable for a parent. It merely exists in the child via$this->varparentkeyword.