We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 539f636 + 1807186 commit 30bde29Copy full SHA for 30bde29
Behavioral/Mediator/Colleague.php
@@ -14,13 +14,7 @@ abstract class Colleague
14
* @var MediatorInterface
15
*/
16
private $mediator;
17
-
18
- // for subclasses
19
- protected function getMediator()
20
- {
21
- return $this->mediator;
22
- }
23
+
24
/**
25
* @param MediatorInterface $medium
26
@@ -29,4 +23,10 @@ public function __construct(MediatorInterface $medium)
29
// in this way, we are sure the concrete colleague knows the mediator
30
$this->mediator = $medium;
31
}
27
+ // for subclasses
28
+ protected function getMediator()
+ {
+ return $this->mediator;
+ }
32
0 commit comments