protected function _compile($part, ValueBinder $generator)
    {
        if ($part instanceof ExpressionInterface) {
            $part = $part->sql($generator);
        } elseif (is_array($part)) {
            $placeholder = $generator->placeholder('param');
            $generator->bind($placeholder, $part['value'], $part['type']);
            $part = $placeholder;
        }

        return $part;
    }
protected function _compile($part, ValueBinder $generator)
    {
        if ($part instanceof ExpressionInterface) {
            $part = $part->sql($generator);
        } elseif (is_array($part)) {
            $placeholder = $generator->placeholder('param');
            $generator->bind($placeholder, $part['value'], $part['type']);
            $part = $placeholder;
        }

        return $part;
    }
protected function _compile ( $ part , ValueBinder $ generator ) { if ( $ part instanceof ExpressionInterface ) { $ part = $ part -> sql ( $ generator ) ; } elseif ( is_array ( $ part ) ) { $ placeholder = $ generator -> placeholder ( 'param' ) ; $ generator -> bind ( $ placeholder , $ part [ 'value' ] , $ part [ 'type' ] ) ; $ part = $ placeholder ; } return $ part ; }
Compiles the relevant parts into sql

@param array|string|\Cake\Database\ExpressionInterface $part The part to compile
@param \Cake\Database\ValueBinder $generator Sql generator

@return string
Compiles the relevant parts into sql