Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
Attribute | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
getProcessorNameFor | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
<?php | |
namespace PHPixie\HTTPProcessors\Processor\Dispatcher\Builder; | |
abstract class Attribute extends \PHPixie\Processors\Processor\Dispatcher\Builder | |
{ | |
protected $attributeName = 'processor'; | |
protected function getProcessorNameFor($httpRequest) | |
{ | |
return $httpRequest->attributes()->get($this->attributeName); | |
} | |
} |