for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Inbounder;
use Inbounder\Parsers\Contracts\ParserInterface;
abstract class AbstractHandler
{
/**
* @var ParserInterface
*/
protected $parser;
* Constructor.
*
* @param ParserInterface $parser
public function __construct(ParserInterface $parser)
$this->parser = $parser;
}
* Access the parser.
* @return ParserInterface
public function parser()
return $this->parser;
* Run the handler.
* @param mixed $parsed
* @return mixed
abstract public function run($parsed);