Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
Move PHPDoc for toggle() method in the interface
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkEzz committed Jan 1, 2021
1 parent a3a84b5 commit 68b72d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ It can as well be used in your 'from scratch' project or in the framework of you

<a name="implemented-methods"></a>
### Currently implemented methods

*This list is temporary, expect more methods to come*

- [x] Set the color (RGB) of the light
- [x] Set the light brightness
- [x] Set the light name
Expand Down
3 changes: 2 additions & 1 deletion src/Interfaces/YeePHPInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public function getName(): string;
/**
* Toggle the light
*
* @return bool
* @deprecated Please use the setPower() method instead
* @return YeePHPInterface
*/
public function toggle(): self;

Expand Down
2 changes: 1 addition & 1 deletion src/YeePHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function getName(): string
}

/**
* @deprecated Please use the setPower() method instead
* @inheritDoc
*/
public function toggle(): self
{
Expand Down

0 comments on commit 68b72d9

Please sign in to comment.