contents = $data; } /** * Returns the data * * This method may either return a string or a readable stream resource * * @return mixed */ function get() { return $this->contents; } /** * Returns the ETag for a file * * An ETag is a unique identifier representing the current version of the file. If the file changes, the ETag MUST change. * * Return null if the ETag can not effectively be determined * * @return void */ function getETag() { return null; } /** * Returns the size of the node, in bytes * * @return int */ function getSize() { return $this->size; } /** * Allows testing scripts to set the resource's file size. * * @param int $size * @return void */ function setSize($size) { $this->size = $size; } }