Update Colleague.php

This commit is contained in:
dingoEgret
2015-03-26 13:10:16 -04:00
parent 539f636427
commit 18071865af

View File

@@ -14,13 +14,7 @@ abstract class Colleague
* @var MediatorInterface
*/
private $mediator;
// for subclasses
protected function getMediator()
{
return $this->mediator;
}
/**
* @param MediatorInterface $medium
*/
@@ -29,4 +23,10 @@ abstract class Colleague
// in this way, we are sure the concrete colleague knows the mediator
$this->mediator = $medium;
}
// for subclasses
protected function getMediator()
{
return $this->mediator;
}
}