| Total Complexity | 2 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | abstract class AbstractRoutingProvider implements Provider |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var RouterInterface |
||
| 18 | */ |
||
| 19 | protected $router; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Construct the provider. |
||
| 23 | * |
||
| 24 | * @param RouterInterface $router |
||
| 25 | */ |
||
| 26 | 1 | public function __construct(RouterInterface $router) |
|
| 29 | 1 | } |
|
| 30 | |||
| 31 | |||
| 32 | /** |
||
| 33 | * @{inheritDoc} |
||
| 34 | */ |
||
| 35 | 1 | public function url($object, array $options = array()) |
|
| 41 | ); |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Returns the routing for the object. The return value must be an array of two elements: the route name and the |
||
| 46 | * parameters |
||
| 47 | * |
||
| 48 | * @param mixed $object |
||
| 49 | * @param mixed $options |
||
| 50 | * @return array |
||
| 51 | */ |
||
| 52 | abstract public function routing($object, array $options = array()); |
||
| 53 | } |
||
| 54 |