Skip to content
Merged

Typo #208

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Structural/Facade/BiosInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
6 changes: 3 additions & 3 deletions Structural/Facade/Facade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace DesignPatterns\Structural\Facade;

/**
*
* Class Facade.
*/
class Facade
{
Expand Down Expand Up @@ -31,7 +31,7 @@ public function __construct(BiosInterface $bios, OsInterface $os)
}

/**
* turn on the system.
* Turn on the system.
*/
public function turnOn()
{
Expand All @@ -41,7 +41,7 @@ public function turnOn()
}

/**
* turn off the system.
* Turn off the system.
*/
public function turnOff()
{
Expand Down
4 changes: 2 additions & 2 deletions Structural/Facade/OsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace DesignPatterns\Structural\Facade;

/**
* Class OsInterface.
* Interface OsInterface.
*/
interface OsInterface
{
/**
* halt the OS.
* Halt the OS.
*/
public function halt();
}
2 changes: 2 additions & 0 deletions Structural/Facade/Tests/FacadeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public function getComputer()
}

/**
* @param Computer $facade
* @param OsInterface $os
* @dataProvider getComputer
*/
public function testComputerOn(Computer $facade, OsInterface $os)
Expand Down