Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
7 / 7 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| WebdavRouteDefinitionProvider | |
100.00% |
7 / 7 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| getGlobalRoutes | |
100.00% |
6 / 6 |
|
100.00% |
1 / 1 |
1 | |||
| getActionsForBoundedContext | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | namespace Apie\Webdav\RouteDefinitions; |
| 3 | |
| 4 | use Apie\Common\Interfaces\GlobalRouteDefinitionProviderInterface; |
| 5 | use Apie\Common\RouteDefinitions\ActionHashmap; |
| 6 | use Apie\Core\BoundedContext\BoundedContext; |
| 7 | use Apie\Core\Context\ApieContext; |
| 8 | |
| 9 | class WebdavRouteDefinitionProvider implements GlobalRouteDefinitionProviderInterface |
| 10 | { |
| 11 | public function getGlobalRoutes(): ActionHashmap |
| 12 | { |
| 13 | $definition = new WebdavRouteDefinition(); |
| 14 | $definition2 = new WebdavRootRouteDefinition(); |
| 15 | return new ActionHashmap([ |
| 16 | $definition->getOperationId() => $definition, |
| 17 | $definition2->getOperationId() => $definition2, |
| 18 | ]); |
| 19 | } |
| 20 | |
| 21 | public function getActionsForBoundedContext(BoundedContext $boundedContext, ApieContext $apieContext): ActionHashmap |
| 22 | { |
| 23 | return new ActionHashmap([]); |
| 24 | } |
| 25 | } |