adding the missing classes to show the real purpose of the pattern

This commit is contained in:
Trismegiste
2013-05-11 17:33:47 +02:00
parent cc93827b8f
commit 6f6e86ee48
4 changed files with 89 additions and 19 deletions

20
Command/Receiver.php Normal file
View 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;
}
}