Merge pull request #208 from pjurasek/patch-1

Typo
This commit is contained in:
Dominik Liebler
2016-04-06 15:07:44 +02:00
4 changed files with 12 additions and 10 deletions

View File

@@ -3,29 +3,29 @@
namespace DesignPatterns\Structural\Facade;
/**
* Class BiosInterface.
* Interface BiosInterface.
*/
interface BiosInterface
{
/**
* execute the BIOS.
* Execute the BIOS.
*/
public function execute();
/**
* wait for halt.
* Wait for halt.
*/
public function waitForKeyPress();
/**
* launches the OS.
* Launches the OS.
*
* @param OsInterface $os
*/
public function launch(OsInterface $os);
/**
* power down BIOS.
* Power down BIOS.
*/
public function powerDown();
}

View File

@@ -3,7 +3,7 @@
namespace DesignPatterns\Structural\Facade;
/**
*
* Class Facade.
*/
class Facade
{
@@ -31,7 +31,7 @@ class Facade
}
/**
* turn on the system.
* Turn on the system.
*/
public function turnOn()
{
@@ -41,7 +41,7 @@ class Facade
}
/**
* turn off the system.
* Turn off the system.
*/
public function turnOff()
{

View File

@@ -3,12 +3,12 @@
namespace DesignPatterns\Structural\Facade;
/**
* Class OsInterface.
* Interface OsInterface.
*/
interface OsInterface
{
/**
* halt the OS.
* Halt the OS.
*/
public function halt();
}

View File

@@ -34,6 +34,8 @@ class FacadeTest extends \PHPUnit_Framework_TestCase
}
/**
* @param Computer $facade
* @param OsInterface $os
* @dataProvider getComputer
*/
public function testComputerOn(Computer $facade, OsInterface $os)