示例#1
0
    /**
     * @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';
    }
示例#2
0
 /**
  * @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;
 }
示例#4
0
 /**
  * {@inheritdoc}
  *
  * @param Collection $collection
  */
 public function __construct($modelClass, Collection $collection)
 {
     parent::__construct($modelClass);
     $this->collection = $collection;
 }
示例#5
0
 /**
  * @param \Doctrine\Common\Persistence\ObjectManager $objectManager
  * @param string $modelClass
  */
 public function __construct(ObjectManager $objectManager, $modelClass)
 {
     parent::__construct($modelClass);
     $this->objectManager = $objectManager;
 }
示例#6
0
 /**
  * @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;
 }
示例#7
0
 /**
  * {@inheritdoc}
  *
  * @param Storage $storage
  */
 public function __construct(Storage $storage)
 {
     parent::__construct(get_class($storage->create()));
     $this->storage = $storage;
 }