mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-09 00:16:32 +02:00
Applied fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
3663603b80
commit
fe1f144ec3
@@ -3,7 +3,7 @@
|
||||
namespace DesignPatterns\Behavioral\Command;
|
||||
|
||||
/**
|
||||
* class CommandInterface
|
||||
* class CommandInterface.
|
||||
*/
|
||||
interface CommandInterface
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ namespace DesignPatterns\Behavioral\Command;
|
||||
|
||||
/**
|
||||
* This concrete command calls "print" on the Receiver, but an external
|
||||
* invoker just knows that it can call "execute"
|
||||
* invoker just knows that it can call "execute".
|
||||
*/
|
||||
class HelloCommand implements CommandInterface
|
||||
{
|
||||
@@ -25,7 +25,7 @@ class HelloCommand implements CommandInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* execute and output "Hello World"
|
||||
* execute and output "Hello World".
|
||||
*/
|
||||
public function execute()
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ namespace DesignPatterns\Behavioral\Command;
|
||||
|
||||
/**
|
||||
* Invoker is using the command given to it.
|
||||
* Example : an Application in SF2
|
||||
* Example : an Application in SF2.
|
||||
*/
|
||||
class Invoker
|
||||
{
|
||||
@@ -25,7 +25,7 @@ class Invoker
|
||||
}
|
||||
|
||||
/**
|
||||
* executes the command
|
||||
* executes the command.
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
@@ -3,7 +3,7 @@
|
||||
namespace DesignPatterns\Behavioral\Command;
|
||||
|
||||
/**
|
||||
* Receiver is specific service with its own contract and can be only concrete
|
||||
* Receiver is specific service with its own contract and can be only concrete.
|
||||
*/
|
||||
class Receiver
|
||||
{
|
||||
|
@@ -2,16 +2,15 @@
|
||||
|
||||
namespace DesignPatterns\Behavioral\Command\Tests;
|
||||
|
||||
use DesignPatterns\Behavioral\Command\HelloCommand;
|
||||
use DesignPatterns\Behavioral\Command\Invoker;
|
||||
use DesignPatterns\Behavioral\Command\Receiver;
|
||||
use DesignPatterns\Behavioral\Command\HelloCommand;
|
||||
|
||||
/**
|
||||
* CommandTest has the role of the Client in the Command Pattern
|
||||
* CommandTest has the role of the Client in the Command Pattern.
|
||||
*/
|
||||
class CommandTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* @var Invoker
|
||||
*/
|
||||
|
Reference in New Issue
Block a user