code/database/query/insert.php
public function type($type)
    {
        $type = strtoupper($type);

        if (!in_array($type, ['INSERT', 'INSERT IGNORE', 'REPLACE'])) {
            throw new \UnexpectedValueException('Invalid insert type');
        }

        $this->type = $type;

        return $this;
    }
public function type($type)
    {
        $type = strtoupper($type);

        if (!in_array($type, ['INSERT', 'INSERT IGNORE', 'REPLACE'])) {
            throw new \UnexpectedValueException('Invalid insert type');
        }

        $this->type = $type;

        return $this;
    }
public function type ( $ type ) { $ type = strtoupper ( $ type ) ; if ( ! in_array ( $ type , [ 'INSERT' , 'INSERT IGNORE' , 'REPLACE' ] ) ) { throw new \ UnexpectedValueException ( 'Invalid insert type' ) ; } $ this -> type = $ type ; return $ this ; }
Sets insert operation type

Possible values are INSERT|REPLACE|INSERT IGNORE

@param string $type
@return $this
Sets insert operation type