final protected function setWriteMode($mode)
    {
        if (!in_array($mode, [static::WRITE_MODE_INSERT, static::WRITE_MODE_UPSERT, static::WRITE_MODE_UPDATE])) {
            throw new \InvalidArgumentException(sprintf('Passed write mode "%s" is invalid!', $mode));
        }
        $this->writeMode = $mode;
    }
final protected function setWriteMode($mode)
    {
        if (!in_array($mode, [static::WRITE_MODE_INSERT, static::WRITE_MODE_UPSERT, static::WRITE_MODE_UPDATE])) {
            throw new \InvalidArgumentException(sprintf('Passed write mode "%s" is invalid!', $mode));
        }
        $this->writeMode = $mode;
    }
final protected function setWriteMode ( $ mode ) { if ( ! in_array ( $ mode , [ static :: WRITE_MODE_INSERT , static :: WRITE_MODE_UPSERT , static :: WRITE_MODE_UPDATE ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Passed write mode "%s" is invalid!' , $ mode ) ) ; } $ this -> writeMode = $ mode ; }
Sets the current write mode
@param   string  $mode   The write mode to use.
Sets the current write mode