Cake\Database\Expression\TupleComparison::__construct PHP Method

__construct() public method

Constructor
public __construct ( string | array $fields, array | Cake\Database\ExpressionInterface $values, array $types = [], string $conjunction = '=' )
$fields string | array the fields to use to form a tuple
$values array | Cake\Database\ExpressionInterface the values to use to form a tuple
$types array the types names to use for casting each of the values, only one type per position in the value array in needed
$conjunction string the operator used for comparing field and value
    public function __construct($fields, $values, $types = [], $conjunction = '=')
    {
        parent::__construct($fields, $values, $types, $conjunction);
        $this->_type = (array) $types;
    }