/** * Fetch the attachment data from the couchdb and return it * * @return string */ protected function fetchData() { return $this->connection->get($this->url, null, true)->data; }