public function writeTextualData($key, $value) 
    {
        $this->buffer->startChunk("tEXt");
        $this->buffer->writeString($key);
        $this->buffer->writeUInt8(0);
        $this->buffer->writeString($value);
        $this->buffer->endChunk();
    }
public function writeTextualData($key, $value) 
    {
        $this->buffer->startChunk("tEXt");
        $this->buffer->writeString($key);
        $this->buffer->writeUInt8(0);
        $this->buffer->writeString($value);
        $this->buffer->endChunk();
    }
public function writeTextualData ( $ key , $ value ) { $ this -> buffer -> startChunk ( "tEXt" ) ; $ this -> buffer -> writeString ( $ key ) ; $ this -> buffer -> writeUInt8 ( 0 ) ; $ this -> buffer -> writeString ( $ value ) ; $ this -> buffer -> endChunk ( ) ; }
Writes a tEXt chunk containing the specified strings.

@param string $key Key, one of
{@link https://www.w3.org/TR/2003/REC-PNG-20031110/#11keywords}
@param string $value Value.
Writes a tEXt chunk containing the specified strings .