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