Mark V
1: <?php
2: namespace MOC\V\Component\Document\Component\Bridge;
3:
4: use MOC\V\Component\Document\Component\IBridgeInterface;
5: use MOC\V\Component\Document\Component\Parameter\Repository\FileParameter;
6: use MOC\V\Component\Document\Component\Parameter\Repository\PaperOrientationParameter;
7: use MOC\V\Component\Document\Component\Parameter\Repository\PaperSizeParameter;
8:
9: /**
10: * Class Bridge
11: *
12: * @package MOC\V\Component\Document\Component\Bridge
13: */
14: abstract class Bridge implements IBridgeInterface
15: {
16:
17: /** @var null|FileParameter $FileParameter */
18: private $FileParameter = null;
19: /** @var null|PaperOrientationParameter $PaperOrientationParameter */
20: private $PaperOrientationParameter = null;
21: /** @var null|PaperSizeParameter $PaperSizeParameter */
22: private $PaperSizeParameter = null;
23:
24: /**
25: * @return null|PaperOrientationParameter
26: */
27: public function getPaperOrientationParameter()
28: {
29:
30: return $this->PaperOrientationParameter;
31: }
32:
33: /**
34: * @param PaperOrientationParameter $PaperOrientation
35: *
36: * @return IBridgeInterface
37: */
38: protected function setPaperOrientationParameter(PaperOrientationParameter $PaperOrientation)
39: {
40:
41: $this->PaperOrientationParameter = $PaperOrientation;
42: return $this;
43: }
44:
45: /**
46: * @return null|PaperSizeParameter
47: */
48: public function getPaperSizeParameter()
49: {
50:
51: return $this->PaperSizeParameter;
52: }
53:
54: /**
55: * @param PaperSizeParameter $PaperSize
56: *
57: * @return IBridgeInterface
58: */
59: protected function setPaperSizeParameter(PaperSizeParameter $PaperSize)
60: {
61:
62: $this->PaperSizeParameter = $PaperSize;
63: return $this;
64: }
65:
66: /**
67: * @return null|FileParameter
68: */
69: protected function getFileParameter()
70: {
71:
72: return $this->FileParameter;
73: }
74:
75: /**
76: * @param FileParameter $FileParameter
77: *
78: * @return IBridgeInterface
79: */
80: protected function setFileParameter(FileParameter $FileParameter)
81: {
82:
83: $this->FileParameter = $FileParameter;
84: return $this;
85: }
86: }
87: