/**
  * @return array
  */
 public function getPrepareParams()
 {
     foreach ($this->paramsPortion as $key => $portion) {
         if (!$key) {
             continue;
         }
         $value = Operations::getPrepareParam($portion, $this->params[$key]);
         $this->bindParams[$key] = $value;
     }
     return $this->bindParams;
 }
 public function testGetTextSqlOperationContaining()
 {
     $operatorExpected = 'containing';
     foreach (self::$crud as $key => $operation) {
         if ($operatorExpected !== $key) {
             continue;
         }
         foreach ($operation as $param => $conditionPortion) {
             $sql = Operations::getTextSqlOperation(new Portion($conditionPortion));
             $this->assertEquals($sql, Text::uncamelize($param) . ' LIKE :' . $param . ':', 'getTextSqlOperation create expected sql text');
         }
     }
 }
 /**
  * @param string $preparedUrlWithoutAnd
  * @return string
  *
  */
 private static function buildOR($preparedUrlWithoutAnd)
 {
     $conditions = array();
     $orList = explode('-', $preparedUrlWithoutAnd);
     foreach ($orList as $condition) {
         $sql = Operations::getTextSqlOperation(new Portion($condition));
         if ($sql === false) {
             continue;
         }
         $conditions[] = $sql;
     }
     return implode(' OR ', $conditions);
 }
 /**
  * @return string Column name.
  */
 public function getColumnName()
 {
     return Operations::truncateOperation($this);
 }