for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* @author domenico [email protected] / [email protected]
* Date: 05/11/18
* Time: 14.08
*
*/
namespace Matecat\SubFiltering\Commons;
abstract class AbstractHandler {
protected string $name;
* @var Pipeline
protected Pipeline $pipeline;
* @param string $segment
* @return string
public abstract function transform( string $segment ): string;
* AbstractHandler constructor.
public function __construct() {
$this->name = get_class( $this );
}
public function getName(): string {
return $this->name;
* @param Pipeline $pipeline
public function setPipeline( Pipeline $pipeline ) {
$this->pipeline = $pipeline;
* @return Pipeline
public function getPipeline(): Pipeline {
return $this->pipeline;