Mark V
1: <?php
2: namespace MOC\V\Component\Router;
3:
4: use MOC\V\Component\Router\Component\IBridgeInterface;
5: use MOC\V\Component\Router\Component\IVendorInterface;
6:
7: /**
8: * Class Router
9: *
10: * @package MOC\V\Component\Router
11: */
12: class Router implements IVendorInterface
13: {
14:
15: /** @var IVendorInterface $VendorInterface */
16: private $VendorInterface = null;
17:
18: /**
19: * @param IVendorInterface $VendorInterface
20: */
21: public function __construct(IVendorInterface $VendorInterface)
22: {
23:
24: $this->setVendorInterface($VendorInterface);
25: }
26:
27: /**
28: * @return IVendorInterface
29: */
30: public function getVendorInterface()
31: {
32:
33: return $this->VendorInterface;
34: }
35:
36: /**
37: * @param IVendorInterface $VendorInterface
38: *
39: * @return IVendorInterface
40: */
41: public function setVendorInterface(IVendorInterface $VendorInterface)
42: {
43:
44: $this->VendorInterface = $VendorInterface;
45: return $this;
46: }
47:
48: /**
49: * @return IBridgeInterface
50: */
51: public function getBridgeInterface()
52: {
53:
54: return $this->VendorInterface->getBridgeInterface();
55: }
56:
57: /**
58: * @param IBridgeInterface $BridgeInterface
59: *
60: * @return IBridgeInterface
61: */
62: public function setBridgeInterface(IBridgeInterface $BridgeInterface)
63: {
64:
65: return $this->VendorInterface->setBridgeInterface($BridgeInterface);
66: }
67:
68: }
69: