public function setCollections(array $value)
    {
        if (array_key_exists('read', $value)) {
            $this->setReadCollections($value['read']);
        }
        if (array_key_exists('write', $value)) {
            $this->setWriteCollections($value['write']);
        }
    }
public function setCollections(array $value)
    {
        if (array_key_exists('read', $value)) {
            $this->setReadCollections($value['read']);
        }
        if (array_key_exists('write', $value)) {
            $this->setWriteCollections($value['write']);
        }
    }
public function setCollections ( array $ value ) { if ( array_key_exists ( 'read' , $ value ) ) { $ this -> setReadCollections ( $ value [ 'read' ] ) ; } if ( array_key_exists ( 'write' , $ value ) ) { $ this -> setWriteCollections ( $ value [ 'write' ] ) ; } }
Set the collections array.

The array should have 2 sub-arrays, namely 'read' and 'write' which should hold the respective collections
for the transaction

@param array $value
Set the collections array .