for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* (c) Mantas Varatiejus <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace MVar\LogParser;
/**
* Simple parser implementation which use regular expression to parse line.
class SimpleParser extends AbstractLineParser
{
* @var string
private $pattern;
* Constructor.
* @param string $pattern
public function __construct($pattern)
$this->pattern = $pattern;
}
* {@inheritdoc}
protected function getPattern()
return $this->pattern;