function reason() { $len = strcspn($this->data, "\n", $this->position); $this->reason = trim(substr($this->data, $this->position, $len), "\t\r "); $this->position += $len + 1; $this->state = 'new_line'; }