public function createParameter($value, $type = null)
    {
        if ($this->mode === self::MODE_POSITIONAL) {
            return $this->createPositionalParameter($value, $type);
        }

        return $this->createNamedParameter($value, $type);
    }
public function createParameter($value, $type = null)
    {
        if ($this->mode === self::MODE_POSITIONAL) {
            return $this->createPositionalParameter($value, $type);
        }

        return $this->createNamedParameter($value, $type);
    }
public function createParameter ( $ value , $ type = null ) { if ( $ this -> mode === self :: MODE_POSITIONAL ) { return $ this -> createPositionalParameter ( $ value , $ type ) ; } return $ this -> createNamedParameter ( $ value , $ type ) ; }
Creates and sets a parameter.

@param mixed $value The value.
@param mixed $type  The type.

@return string The parameter placeholder.
Creates and sets a parameter .