HEX
Server: LiteSpeed
System: Linux server44.twelveinks.com 5.14.0-570.12.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 13 06:11:55 EDT 2025 x86_64
User: moda (1338)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /python/moda/public_html/tech/old/vendor/league/climate/src/Util/Writer/Buffer.php
<?php

namespace League\CLImate\Util\Writer;

class Buffer implements WriterInterface
{
    /**
     * @var string $contents The buffered data.
     */
    protected $contents = "";

    /**
     * Write the content to the buffer.
     *
     * @param string $content
     *
     * @return void
     */
    public function write($content)
    {
        $this->contents .= $content;
    }


    /**
     * Get the buffered data.
     *
     * @return string
     */
    public function get()
    {
        return $this->contents;
    }

    /**
     * Clean the buffer and throw away any data.
     *
     * @return void
     */
    public function clean()
    {
        $this->contents = "";
    }
}