src/Replication/ReplicationStrategy.php
public function setCommandReadOnly($commandID, $readonly = true)
    {
        $commandID = strtoupper($commandID);

        if ($readonly) {
            $this->readonly[$commandID] = $readonly;
        } else {
            unset($this->readonly[$commandID]);
        }
    }
public function setCommandReadOnly($commandID, $readonly = true)
    {
        $commandID = strtoupper($commandID);

        if ($readonly) {
            $this->readonly[$commandID] = $readonly;
        } else {
            unset($this->readonly[$commandID]);
        }
    }
public function setCommandReadOnly ( $ commandID , $ readonly = true ) { $ commandID = strtoupper ( $ commandID ) ; if ( $ readonly ) { $ this -> readonly [ $ commandID ] = $ readonly ; } else { unset ( $ this -> readonly [ $ commandID ] ) ; } }
Marks a command as a read-only operation.

When the behavior of a command can be decided only at runtime depending
on its arguments, a callable object can be provided to dynamically check
if the specified command performs a read or a write operation.

@param string $commandID Command ID.
@param mixed  $readonly  A boolean value or a callable object.
Marks a command as a read - only operation .