<?php
namespace App\Utils\BaseParser\TextParser\Types; class BoolRaw extends \App\Utils\BaseParser\TextParser\BlockRegexpAbstract { protected $extractRegexp = "/^(?P<rawData>(0|1)__LENGHTS__)/"; protected function formatExtractedData($str, $matchesObj) { if ($str==='1') { return true; } return false; } } 