/** * Compare in the following style in the where condition: * $column LIKE $compareValue. * * @param string $column The column name which should compare. * @param string $compareValue The value for the comparison. * @param int $level (Optional) Set the percent sign. Default (non) is zero, before value * is 1, after 2 and both 3. If the $compareValue is passed with the % * sign, this argument is unnecessary. * * @return $this Same instance to concatenate methods. */ public function like($column, $compareValue, $level = 0) { /** @var ColumnInterface $columnObj */ $columnObj = $this->factory->references('Column', $column); $valueObject = $this->factory->references('Value', $compareValue); $this->condition->like($columnObj, $valueObject, $level); return $this; }