OrientDB/OrientDBRecord.php
public function parse()
    {
        // Check, if we already decoded current $this->content
        if (!$this->isParsed) {
            // Parse record content
            if ($this->type == OrientDB::RECORD_TYPE_DOCUMENT) {
                $parser = new OrientDBRecordDecoder(rtrim($this->content));

                $this->className = $parser->className;
                foreach ($parser->data as $key => $value) {
                    $this->data->$key = $value;
                }
            } else {
                $this->data = $this->content;
            }
            $this->isParsed = true;
        }
    }
public function parse()
    {
        // Check, if we already decoded current $this->content
        if (!$this->isParsed) {
            // Parse record content
            if ($this->type == OrientDB::RECORD_TYPE_DOCUMENT) {
                $parser = new OrientDBRecordDecoder(rtrim($this->content));

                $this->className = $parser->className;
                foreach ($parser->data as $key => $value) {
                    $this->data->$key = $value;
                }
            } else {
                $this->data = $this->content;
            }
            $this->isParsed = true;
        }
    }
Parses $this->content and populates $this->data
@return void