mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 09:42:24 +01:00
Capitalize letters and add dots
This commit is contained in:
parent
0e358b79d2
commit
00c3903b2e
@ -3,29 +3,29 @@
|
|||||||
namespace DesignPatterns\Structural\Facade;
|
namespace DesignPatterns\Structural\Facade;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface BiosInterface
|
* Interface BiosInterface.
|
||||||
*/
|
*/
|
||||||
interface BiosInterface
|
interface BiosInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* execute the BIOS
|
* Execute the BIOS.
|
||||||
*/
|
*/
|
||||||
public function execute();
|
public function execute();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wait for halt
|
* Wait for halt.
|
||||||
*/
|
*/
|
||||||
public function waitForKeyPress();
|
public function waitForKeyPress();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* launches the OS
|
* Launches the OS.
|
||||||
*
|
*
|
||||||
* @param OsInterface $os
|
* @param OsInterface $os
|
||||||
*/
|
*/
|
||||||
public function launch(OsInterface $os);
|
public function launch(OsInterface $os);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* power down BIOS
|
* Power down BIOS.
|
||||||
*/
|
*/
|
||||||
public function powerDown();
|
public function powerDown();
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
namespace DesignPatterns\Structural\Facade;
|
namespace DesignPatterns\Structural\Facade;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Class Facade
|
||||||
*/
|
*/
|
||||||
class Facade
|
class Facade
|
||||||
{
|
{
|
||||||
@ -31,7 +31,7 @@ class Facade
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* turn on the system.
|
* Turn on the system.
|
||||||
*/
|
*/
|
||||||
public function turnOn()
|
public function turnOn()
|
||||||
{
|
{
|
||||||
@ -41,7 +41,7 @@ class Facade
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* turn off the system.
|
* Turn off the system.
|
||||||
*/
|
*/
|
||||||
public function turnOff()
|
public function turnOff()
|
||||||
{
|
{
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
namespace DesignPatterns\Structural\Facade;
|
namespace DesignPatterns\Structural\Facade;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class OsInterface.
|
* Interface OsInterface.
|
||||||
*/
|
*/
|
||||||
interface OsInterface
|
interface OsInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* halt the OS.
|
* Halt the OS.
|
||||||
*/
|
*/
|
||||||
public function halt();
|
public function halt();
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,8 @@ class FacadeTest extends \PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param Computer $facade
|
||||||
|
* @param OsInterface $os
|
||||||
* @dataProvider getComputer
|
* @dataProvider getComputer
|
||||||
*/
|
*/
|
||||||
public function testComputerOn(Computer $facade, OsInterface $os)
|
public function testComputerOn(Computer $facade, OsInterface $os)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user