public function __construct($string = '') { $this->buffer = $string; $this->length = strlen($string); }