public function create($someProperty) { $object = new PrototypeClassA(); $object->setSomeProperty($someProperty); return $object; }