Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
JavascriptCdnRouteDefinitionProvider
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 getGlobalRoutes
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getActionsForBoundedContext
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2namespace Apie\JavascriptCdn\RouteDefinitions;
3
4use Apie\Common\Interfaces\GlobalRouteDefinitionProviderInterface;
5use Apie\Common\RouteDefinitions\ActionHashmap;
6use Apie\Core\BoundedContext\BoundedContext;
7use Apie\Core\Context\ApieContext;
8
9class 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}