Sokil\Mongo\Operator::get PHP Method

get() public method

public get ( $operation, $fieldName = null )
    public function get($operation, $fieldName = null)
    {
        if ($fieldName) {
            return isset($this->operators[$operation][$fieldName]) ? $this->operators[$operation][$fieldName] : null;
        }
        return isset($this->operators[$operation]) ? $this->operators[$operation] : null;
    }