public function getAllAsObject(array $options = [])
    {
        $result = $this->getAll($options);
        if (count($result) === 0) {
            return new \stdClass();
        }

        return $result;
    }
public function getAllAsObject(array $options = [])
    {
        $result = $this->getAll($options);
        if (count($result) === 0) {
            return new \stdClass();
        }

        return $result;
    }
public function getAllAsObject ( array $ options = [ ] ) { $ result = $ this -> getAll ( $ options ) ; if ( count ( $ result ) === 0 ) { return new \ stdClass ( ) ; } return $ result ; }
Get all document attributes, and return an empty object if the documentapped into a DocumentWrapper class

@param mixed $options - optional, array of options for the getAll function, or the boolean value for $includeInternals
<p>Options are :
<li>'_includeInternals' - true to include the internal attributes. Defaults to false</li>
<li>'_ignoreHiddenAttributes' - true to show hidden attributes. Defaults to false</li>
</p>

@return mixed - associative array of all document attributes/values, or an empty StdClass if the document
does not have any
Get all document attributes and return an empty object if the documentapped into a DocumentWrapper class