TYPO3 CMS  TYPO3_6-2
Statement.php
Go to the documentation of this file.
1 <?php
3 
19 class Statement implements ConstraintInterface {
20 
24  protected $statement;
25 
29  protected $boundVariables = array();
30 
37  public function __construct($statement, array $boundVariables = array()) {
38  // @deprecated since 6.2, using $boundVariables without preparedStatement will be removed in two versions
39  if (
40  !empty($boundVariables)
41  && !($statement instanceof \TYPO3\CMS\Core\Database\PreparedStatement)
42  ) {
44  . ' in Extbase\'s custom statement without using preparedStatement is'
45  . ' deprecated since TYPO3 6.2 and will be removed in two versions.');
46  }
47  $this->statement = $statement;
48  $this->boundVariables = $boundVariables;
49  }
50 
56  public function getStatement() {
57  return $this->statement;
58  }
59 
65  public function getBoundVariables() {
66  return $this->boundVariables;
67  }
68 
76  }
77 }
__construct($statement, array $boundVariables=array())
Definition: Statement.php:37