class myBatch { // commonly required method put into parent // class referencing properties defined in child public function foo() { echo $this->foo; } } class myBatchA extends myBatch { // properties specific to the extending class public $foo = 'bar'; } class myBatchB extends myBatch { // properties specific to the extending class public $foo = 'monkey'; }