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.
public setCommandReadOnly ( string $commandID, mixed $readonly = true ) | ||
$commandID | string | Command ID. |
$readonly | mixed | A boolean value or a callable object. |