public function createNamedParameter($value, $type = null, $placeholder = null)
    {
        if ($placeholder === null) {
            $placeholder = ':fridge';
        }

        $parameter = substr($placeholder, 1);

        if (!isset($this->parameterCounters['named'][$parameter])) {
            $this->parameterCounters['named'][$parameter] = 0;
        }

        $placeholder = $placeholder.$this->parameterCounters['named'][$parameter];
        $this->setParameter($parameter.$this->parameterCounters['named'][$parameter], $value, $type);

        $this->parameterCounters['named'][$parameter]++;

        return $placeholder;
    }
public function createNamedParameter($value, $type = null, $placeholder = null)
    {
        if ($placeholder === null) {
            $placeholder = ':fridge';
        }

        $parameter = substr($placeholder, 1);

        if (!isset($this->parameterCounters['named'][$parameter])) {
            $this->parameterCounters['named'][$parameter] = 0;
        }

        $placeholder = $placeholder.$this->parameterCounters['named'][$parameter];
        $this->setParameter($parameter.$this->parameterCounters['named'][$parameter], $value, $type);

        $this->parameterCounters['named'][$parameter]++;

        return $placeholder;
    }
public function createNamedParameter ( $ value , $ type = null , $ placeholder = null ) { if ( $ placeholder === null ) { $ placeholder = ':fridge' ; } $ parameter = substr ( $ placeholder , 1 ) ; if ( ! isset ( $ this -> parameterCounters [ 'named' ] [ $ parameter ] ) ) { $ this -> parameterCounters [ 'named' ] [ $ parameter ] = 0 ; } $ placeholder = $ placeholder . $ this -> parameterCounters [ 'named' ] [ $ parameter ] ; $ this -> setParameter ( $ parameter . $ this -> parameterCounters [ 'named' ] [ $ parameter ] , $ value , $ type ) ; $ this -> parameterCounters [ 'named' ] [ $ parameter ] ++ ; return $ placeholder ; }
Creates and sets a named parameter.

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

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