<?php
namespace App\Utils\BaseParser\TextParser\Types; class WholeLine extends \App\Utils\BaseParser\TextParser\BlockRegexpAbstract { protected $extractRegexp = "/^(?P<rawData>.*(\r\n|\r|\n|$))/m"; protected function _extract_value(\App\Utils\BaseParser\TextParser\ExtractedBlock $ret, $originalRawData) { $x = parent::_extract_value($ret, $originalRawData); $x->extractedData = rtrim($x->extractedData, "\n"); return $x; } } 