Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | class RequestAttributeExtractor implements HandlerExtractorInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $attributeName; |
||
30 | |||
31 | /** |
||
32 | * @param string $attributeName Attribute name to check for the handler |
||
33 | */ |
||
34 | 2 | public function __construct(string $attributeName = 'handler') |
|
35 | { |
||
36 | 2 | $this->attributeName = $attributeName; |
|
37 | 2 | } |
|
38 | |||
39 | /** |
||
40 | * @param \Psr\Http\Message\ServerRequestInterface $request Server Request |
||
41 | * @return mixed |
||
42 | */ |
||
43 | 2 | public function extractHandler(ServerRequestInterface $request) |
|
46 | } |
||
47 | } |
||
48 |