Skip to content
Merged
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
3 changes: 1 addition & 2 deletions src/CommandInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
*/
interface CommandInterface
{

/**
* @param DeviceInterface $device
* @return mixed
*/
public function execute(DeviceInterface $device): void;
}
}
1 change: 0 additions & 1 deletion src/DeviceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
interface DeviceInterface
{

public function turnOn(): void;

public function turnOff(): void;
Expand Down
1 change: 0 additions & 1 deletion src/Lamp.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
class Lamp implements DeviceInterface
{

public function turnOn(): void
{
$this->execute('on');
Expand Down
1 change: 0 additions & 1 deletion src/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
class Registry
{

/**
* @var DeviceInterface
*/
Expand Down
1 change: 0 additions & 1 deletion src/ToggleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
class ToggleCommand implements CommandInterface
{

/**
* @var int
*/
Expand Down
1 change: 0 additions & 1 deletion src/TurnOffCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
class TurnOffCommand implements CommandInterface
{

/**
* @param DeviceInterface $device
*/
Expand Down
1 change: 0 additions & 1 deletion src/TurnOnCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
class TurnOnCommand implements CommandInterface
{

/**
* @param DeviceInterface $device
*/
Expand Down
1 change: 0 additions & 1 deletion tests/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
*/
class CommandTest extends PHPUnit_Framework_TestCase
{

/**
* @var Registry
*/
Expand Down