add yet another mariadb short term release to ci (#6004)
[openemr.git] / src / Events / BoundFilter.php
blob68f2ceb76d6f23430cec02adcae6b2cf0a8c738a
1 <?php
3 /**
4 * This file is part of OpenEMR.
6 * @link https://github.com/openemr/openemr/tree/master
7 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
8 */
10 namespace OpenEMR\Events;
12 /**
13 * Represents a where clause using(?, ?) and it's bound values
15 * @package OpenEMR\Events
16 * @author Ken Chapple <ken@mi-squared.com>
17 * @copyright Copyright (c) 2019 Ken Chapple <ken@mi-squared.com>
19 class BoundFilter
21 /**
22 * @var string
24 * Part of a WHERE filter clause, to be appended to a WHERE clause
26 private $filterClause = "1";
28 /**
29 * @var array
31 * Represents the values to be substituted for ?s in the filter clause
33 private $boundValues = [];
35 /**
36 * @return string
38 public function getFilterClause()
40 return $this->filterClause;
43 /**
44 * @param string $filterClause
46 public function setFilterClause($filterClause)
48 $this->filterClause = $filterClause;
51 /**
52 * @return array
54 public function getBoundValues()
56 return $this->boundValues;
59 /**
60 * @param array $boundValues
62 public function setBoundValues($boundValues)
64 $this->boundValues = $boundValues;
67 /**
68 * @param string|int $boundValue
70 public function addBoundValue($boundValue)
72 $this->boundValues[] = $boundValue;