Blame view

components/QueryBuilder.php 647 Bytes
714f42c5   Yarik   Odoo completed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  <?php
      
      namespace artbox\odoo\components;
      
      use yii\base\Configurable;
      use yii\base\Object;
      
      class QueryBuilder extends Object implements Configurable
      {
          protected $db;
          
          public function __construct(Connection $connection, array $config = [])
          {
              $this->db = $connection;
              parent::__construct($config);
          }
          
          public function setConnection(Connection $connection)
          {
              $this->db = $connection;
          }
          
          public function getConnection(): Connection
          {
              return $this->db;
          }
          
      }