/** * @param $productClass */ public function __construct($productClass) { parent::__construct($productClass, 'Memory'); $this->products = array(); }
/** * @param $documentManager * @param $productClass */ public function __construct(DocumentManager $documentManager, $productClass) { $this->dm = $documentManager; parent::__construct($productClass, 'DoctrinePHPCR'); }
public function __construct(EntityManager $entityManager, $productClass) { $this->em = $entityManager; parent::__construct($productClass, 'DoctrineORM'); }