mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-09 08:26:44 +02:00
start a restructure
This commit is contained in:
17
Behavioral/Command/Receiver.php
Normal file
17
Behavioral/Command/Receiver.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Command;
|
||||
|
||||
/**
|
||||
* Receiver is specific service with its own contract and can be only concrete
|
||||
*/
|
||||
class Receiver
|
||||
{
|
||||
/**
|
||||
* @param string $str
|
||||
*/
|
||||
public function write($str)
|
||||
{
|
||||
echo $str;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user