mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 20:20:15 +02:00
adding the missing classes to show the real purpose of the pattern
This commit is contained in:
20
Command/Receiver.php
Normal file
20
Command/Receiver.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* DesignPatternPHP
|
||||
*/
|
||||
|
||||
namespace DesignPatterns\Command;
|
||||
|
||||
/**
|
||||
* Receiver is specific service with its own contract and can be only concrete
|
||||
*/
|
||||
class Receiver
|
||||
{
|
||||
|
||||
public function write($str)
|
||||
{
|
||||
echo $str;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user