/** * @param string $modelClass * @param string $modelPeer * @param string $modelQuery */ public function __construct($modelClass, $modelPeer = null, $modelQuery = null) { parent::__construct($modelClass); $this->modelQuery = $modelQuery ?: $modelClass.'Query'; $this->modelPeer = $modelPeer ?: $modelClass.'Peer'; }
/** * @param string $storageDir * @param string $modelClass * @param string $idProperty */ public function __construct($storageDir, $modelClass, $idProperty = 'payum_id') { parent::__construct($modelClass); $this->storageDir = $storageDir; $this->idProperty = $idProperty; }
/** * @param \Illuminate\Contracts\Foundation\Application $app * @param string $modelClass */ public function __construct($modelClass, Application $app = null) { parent::__construct($modelClass); $this->app = $app; }
/** * {@inheritdoc} * * @param Collection $collection */ public function __construct($modelClass, Collection $collection) { parent::__construct($modelClass); $this->collection = $collection; }
/** * @param \Doctrine\Common\Persistence\ObjectManager $objectManager * @param string $modelClass */ public function __construct(ObjectManager $objectManager, $modelClass) { parent::__construct($modelClass); $this->objectManager = $objectManager; }
/** * @param TableGateway $tableGateway * @param string $modelClass * @param string $idField */ public function __construct(TableGateway $tableGateway, $modelClass, $idField = 'id') { parent::__construct($modelClass); $this->tableGateway = $tableGateway; $this->idField = $idField; }
/** * {@inheritdoc} * * @param Storage $storage */ public function __construct(Storage $storage) { parent::__construct(get_class($storage->create())); $this->storage = $storage; }