yii\mongodb\Command::getReadConcern PHP Method

getReadConcern() public method

Retuns read concern for this command.
public getReadConcern ( ) : MongoDB\Driver\ReadConcern | string
return MongoDB\Driver\ReadConcern | string read concern to be used in this command.
    public function getReadConcern()
    {
        if ($this->_readConcern !== null) {
            if (is_scalar($this->_readConcern)) {
                $this->_readConcern = new ReadConcern($this->_readConcern);
            }
        }
        return $this->_readConcern;
    }