public function param($value, $type = null, $columnName = 'p')
    {
        $parameterName = $this->findUnusedParameterName($columnName);

        if ($type) {
            $this->appendParameters(
                [
                    $parameterName => [
                        $value,
                        $type
                    ]
                ]
            );
        } else {
            $this->appendParameters([$parameterName => $value]);
        }

        return sprintf(':%s', $parameterName);
    }
public function param($value, $type = null, $columnName = 'p')
    {
        $parameterName = $this->findUnusedParameterName($columnName);

        if ($type) {
            $this->appendParameters(
                [
                    $parameterName => [
                        $value,
                        $type
                    ]
                ]
            );
        } else {
            $this->appendParameters([$parameterName => $value]);
        }

        return sprintf(':%s', $parameterName);
    }
public function param ( $ value , $ type = null , $ columnName = 'p' ) { $ parameterName = $ this -> findUnusedParameterName ( $ columnName ) ; if ( $ type ) { $ this -> appendParameters ( [ $ parameterName => [ $ value , $ type ] ] ) ; } else { $ this -> appendParameters ( [ $ parameterName => $ value ] ) ; } return sprintf ( ':%s' , $ parameterName ) ; }
Auto append parameter and replace them with the parameter name.

@param mixed  $value
@param string $type
@param string $columnName

@return string The parameter name.
Auto append parameter and replace them with the parameter name .