Mike42\Escpos\PrintBuffers\PrintBuffer::writeText PHP Метод

writeText() публичный Метод

Accept UTF-8 text for printing.
public writeText ( string $text )
$text string Text to print
    public function writeText($text);

Usage Example

Пример #1
0
 /**
  * Add text to the buffer.
  *
  * Text should either be followed by a line-break, or feed() should be called
  * after this to clear the print buffer.
  *
  * @param string $str Text to print
  */
 public function text($str = "")
 {
     self::validateString($str, __FUNCTION__);
     $this->buffer->writeText((string) $str);
 }