Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
3 / 3 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| JavascriptCdnRouteDefinitionProvider | |
100.00% |
3 / 3 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| getGlobalRoutes | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getActionsForBoundedContext | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | namespace Apie\JavascriptCdn\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 JavascriptCdnRouteDefinitionProvider implements GlobalRouteDefinitionProviderInterface |
| 10 | { |
| 11 | public function getGlobalRoutes(): ActionHashmap |
| 12 | { |
| 13 | $route = new JavascriptCdnRouteDefinition(); |
| 14 | |
| 15 | return new ActionHashmap([$route->getOperationId() => $route]); |
| 16 | } |
| 17 | |
| 18 | public function getActionsForBoundedContext(BoundedContext $boundedContext, ApieContext $apieContext): ActionHashmap |
| 19 | { |
| 20 | return new ActionHashmap(); |
| 21 | } |
| 22 | } |