1 | <?php |
||
43 | class SubstanceAdministration extends Act |
||
44 | { |
||
45 | /** |
||
46 | * |
||
47 | * @var CodedWithEquivalents |
||
48 | */ |
||
49 | private $routeCode; |
||
50 | |||
51 | /** |
||
52 | * |
||
53 | * @var Set|CodedWithEquivalents |
||
54 | */ |
||
55 | private $approachSiteCode; |
||
56 | |||
57 | /** |
||
58 | * |
||
59 | * @var Interval|PhysicalQuantity |
||
60 | */ |
||
61 | private $doseQuantity; |
||
62 | |||
63 | /** |
||
64 | * |
||
65 | * @var Interval|PhysicalQuantity |
||
66 | */ |
||
67 | private $rateQuantity; |
||
68 | |||
69 | /** |
||
70 | * |
||
71 | * @var Consumable |
||
72 | */ |
||
73 | private $consumable; |
||
74 | |||
75 | private $frequencyOfAdministration; |
||
76 | |||
77 | |||
78 | public function getClassCode(): string |
||
82 | |||
83 | protected function getElementTag(): string |
||
87 | |||
88 | /** |
||
89 | * |
||
90 | * @return CodedWithEquivalents |
||
91 | */ |
||
92 | public function getRouteCode(): CodedWithEquivalents |
||
96 | |||
97 | /** |
||
98 | * |
||
99 | * @return Set|CodedWithEquivalents |
||
100 | */ |
||
101 | public function getApproachSiteCode() |
||
105 | |||
106 | /** |
||
107 | * |
||
108 | * @return Interval|PhysicalQuantity |
||
109 | */ |
||
110 | public function getDoseQuantity() |
||
114 | |||
115 | /** |
||
116 | * |
||
117 | * @return Interval|PhysicalQuantity |
||
118 | */ |
||
119 | public function getRateQuantity() |
||
123 | |||
124 | public function getTimeOfAdministration() |
||
128 | |||
129 | public function getFrequencyOfAdministration() |
||
133 | |||
134 | /** |
||
135 | * |
||
136 | * @return Consumable |
||
137 | */ |
||
138 | public function getConsumable() |
||
142 | |||
143 | /** |
||
144 | * |
||
145 | * @param CodedWithEquivalents $routeCode |
||
146 | * @return $this |
||
147 | */ |
||
148 | public function setRouteCode(CodedWithEquivalents $routeCode) |
||
153 | |||
154 | /** |
||
155 | * |
||
156 | * @param Set|CodedWithEquivalents $approachSiteCode |
||
157 | * @return $this |
||
158 | */ |
||
159 | public function setApproachSiteCode($approachSiteCode) |
||
164 | |||
165 | /** |
||
166 | * |
||
167 | * @param Interval|PhysicalQuantity $doseQuantity |
||
168 | * @return $this |
||
169 | */ |
||
170 | public function setDoseQuantity($doseQuantity) |
||
175 | |||
176 | /** |
||
177 | * |
||
178 | * @param Interval|PhysicalQuantity $rateQuantity |
||
179 | * @return $this |
||
180 | */ |
||
181 | public function setRateQuantity($rateQuantity) |
||
186 | |||
187 | public function setTimeOfAdministration($time) |
||
191 | |||
192 | public function setFrequencyOfAdministration($frequency) |
||
198 | |||
199 | /** |
||
200 | * |
||
201 | * @param Consumable $consumable |
||
202 | * @return $this |
||
203 | */ |
||
204 | function setConsumable(Consumable $consumable) |
||
209 | |||
210 | public function toDOMElement(\DOMDocument $doc): \DOMElement |
||
255 | |||
256 | } |
||
257 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.