1 | <?php |
||
34 | class ConnectionWrapper |
||
35 | { |
||
36 | |||
37 | /** |
||
38 | * The wrapped PDO connection. |
||
39 | * |
||
40 | * @var \PDO |
||
41 | */ |
||
42 | protected $connection; |
||
43 | |||
44 | /** |
||
45 | * Initialize the wrapper with the Magento resource connection. |
||
46 | * |
||
47 | * @param \Magento\Framework\App\ResourceConnection $connection The Magento resource connection |
||
48 | */ |
||
49 | public function __construct(ResourceConnection $connection) |
||
56 | |||
57 | /** |
||
58 | * Delegate all method calls to the PDO connection. |
||
59 | * |
||
60 | * @param string $name The method name |
||
61 | * @param array $arguments The method arguments |
||
62 | * |
||
63 | * @return mixed The result of the method call |
||
64 | */ |
||
65 | public function __call($name, array $arguments = array()) |
||
69 | } |
||
70 |