public function addUnnamedPlaceholderValue($value, int $dataType = PDO::PARAM_STR) : self
    {
        if ($this->usingUnnamedPlaceholders === false) {
            throw new InvalidQueryException('Cannot mix unnamed placeholders with named placeholders');
        }

        $this->usingUnnamedPlaceholders = true;
        $this->parameters[] = [$value, $dataType];

        return $this;
    }
public function addUnnamedPlaceholderValue($value, int $dataType = PDO::PARAM_STR) : self
    {
        if ($this->usingUnnamedPlaceholders === false) {
            throw new InvalidQueryException('Cannot mix unnamed placeholders with named placeholders');
        }

        $this->usingUnnamedPlaceholders = true;
        $this->parameters[] = [$value, $dataType];

        return $this;
    }
public function addUnnamedPlaceholderValue ( $ value , int $ dataType = PDO :: PARAM_STR ) : self { if ( $ this -> usingUnnamedPlaceholders === false ) { throw new InvalidQueryException ( 'Cannot mix unnamed placeholders with named placeholders' ) ; } $ this -> usingUnnamedPlaceholders = true ; $ this -> parameters [ ] = [ $ value , $ dataType ] ; return $ this ; }
Adds an unnamed placeholder's value
Note that you cannot use a mix of named and unnamed placeholders in a query

@param mixed $value
@param int $dataType The PDO constant that indicates the type of data the value represents
@return self For method chaining
@throws InvalidQueryException Thrown if the user mixed unnamed placeholders with named placeholders
Adds an unnamed placeholder s value Note that you cannot use a mix of named and unnamed placeholders in a query