contents = $contents; } public function copyTo( $destPath ) { FileUtils::putContents( $destPath, $this->contents ); } public function getStreamOrString() { return $this->contents; } }