mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-10-01 08:46:55 +02:00
21 lines
348 B
PHP
21 lines
348 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace DesignPatterns\Behavioral\Mediator;
|
|
|
|
abstract class Colleague
|
|
{
|
|
/**
|
|
* @var MediatorInterface
|
|
*/
|
|
protected $mediator;
|
|
|
|
/**
|
|
* @param MediatorInterface $mediator
|
|
*/
|
|
public function setMediator(MediatorInterface $mediator)
|
|
{
|
|
$this->mediator = $mediator;
|
|
}
|
|
}
|