コード例 #1
0
 /**
  * @param \Doctrine\SkeletonMapper\ObjectManagerInterface $objectManager
  * @param \Doctrine\DBAL\Connection                       $connection
  * @param string                                          $className
  * @param string                                          $tableName
  */
 public function __construct(ObjectManagerInterface $objectManager, Connection $connection, $className = null, $tableName = null)
 {
     parent::__construct($objectManager, $className);
     $this->connection = $connection;
     $this->tableName = $tableName;
 }
コード例 #2
0
 /**
  * @param \Doctrine\SkeletonMapper\ObjectManagerInterface $objectManager
  * @param \MongoCollection                                $mongoCollection
  * @param string                                          $className
  */
 public function __construct(ObjectManagerInterface $objectManager, MongoCollection $mongoCollection, $className = null)
 {
     parent::__construct($objectManager, $className);
     $this->mongoCollection = $mongoCollection;
 }
コード例 #3
0
 /**
  * @param \Doctrine\SkeletonMapper\ObjectManagerInterface $objectManager
  * @param \Doctrine\Common\Cache\Cache                    $cache
  * @param string                                          $className
  */
 public function __construct(ObjectManagerInterface $objectManager, Cache $cache, $className = null)
 {
     parent::__construct($objectManager, $className);
     $this->cache = $cache;
 }
コード例 #4
0
 /**
  * @param \Doctrine\SkeletonMapper\ObjectManagerInterface $objectManager
  * @param \Doctrine\Common\Collections\ArrayCollection    $objects
  * @param string                                          $className
  */
 public function __construct(ObjectManagerInterface $objectManager, ArrayCollection $objects, $className = null)
 {
     parent::__construct($objectManager, $className);
     $this->objects = $objects;
 }
コード例 #5
0
 /**
  * @param \Doctrine\SkeletonMapper\ObjectManagerInterface $objectManager
  * @param \GuzzleHttp\Client                              $client
  * @param string                                          $className
  * @param string                                          $url
  */
 public function __construct(ObjectManagerInterface $objectManager, Client $client, $className = null, $url = null)
 {
     parent::__construct($objectManager, $className);
     $this->client = $client;
     $this->url = $url;
 }