1 | <?php |
||
17 | class GraphOptions { |
||
18 | |||
19 | private $graphName; |
||
20 | |||
21 | private $graphSize; |
||
22 | |||
23 | private $nodeShape; |
||
24 | |||
25 | private $nodeLabel; |
||
26 | |||
27 | private $rankDir; |
||
28 | |||
29 | private $arrowHead; |
||
30 | |||
31 | private $wordWrapLimit; |
||
32 | |||
33 | private $parentRelation; |
||
34 | |||
35 | private $enableGraphLink; |
||
36 | |||
37 | private $showGraphLabel; |
||
38 | |||
39 | private $showGraphColor; |
||
40 | |||
41 | private $showGraphLegend; |
||
42 | |||
43 | public function __construct( $options ) { |
||
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | public function getGraphName(): string { |
||
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getGraphSize(): string { |
||
72 | |||
73 | /** |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getNodeShape(): string { |
||
79 | |||
80 | /** |
||
81 | * @return string |
||
82 | */ |
||
83 | public function getNodeLabel(): string { |
||
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | public function getRankDir(): string { |
||
93 | |||
94 | /** |
||
95 | * @return string |
||
96 | */ |
||
97 | public function getArrowHead(): string { |
||
100 | |||
101 | /** |
||
102 | * @return int |
||
103 | */ |
||
104 | public function getWordWrapLimit(): int { |
||
107 | |||
108 | /** |
||
109 | * @return string |
||
110 | */ |
||
111 | public function getParentRelation(): string { |
||
114 | |||
115 | /** |
||
116 | * @return bool |
||
117 | */ |
||
118 | public function isGraphLink(): bool { |
||
121 | |||
122 | /** |
||
123 | * @return bool |
||
124 | */ |
||
125 | public function isGraphLabel(): bool { |
||
128 | |||
129 | /** |
||
130 | * @return bool |
||
131 | */ |
||
132 | public function isGraphColor(): bool { |
||
135 | |||
136 | /** |
||
137 | * @return bool |
||
138 | */ |
||
139 | public function isGraphLegend(): bool { |
||
142 | } |