Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Db / Adapter / StatementContainer.php
blob35bbf8b2dc146ab071e176ebaee27a29c25a3916
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Db\Adapter;
12 class StatementContainer implements StatementContainerInterface
15 /**
16 * @var string
18 protected $sql = '';
20 /**
21 * @var ParameterContainer
23 protected $parameterContainer = null;
25 /**
26 * @param string|null $sql
27 * @param ParameterContainer|null $parameterContainer
29 public function __construct($sql = null, ParameterContainer $parameterContainer = null)
31 if ($sql) {
32 $this->setSql($sql);
34 $this->parameterContainer = ($parameterContainer) ?: new ParameterContainer;
37 /**
38 * @param $sql
39 * @return StatementContainer
41 public function setSql($sql)
43 $this->sql = $sql;
44 return $this;
47 /**
48 * @return string
50 public function getSql()
52 return $this->sql;
55 /**
56 * @param ParameterContainer $parameterContainer
57 * @return StatementContainer
59 public function setParameterContainer(ParameterContainer $parameterContainer)
61 $this->parameterContainer = $parameterContainer;
62 return $this;
65 /**
66 * @return null|ParameterContainer
68 public function getParameterContainer()
70 return $this->parameterContainer;