mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-01 12:40:11 +02:00
Merge pull request #441 from guilhermesiani/patch-5
refactor: add void return type
This commit is contained in:
@@ -6,12 +6,12 @@ class PaperBook implements Book
|
||||
{
|
||||
private int $page;
|
||||
|
||||
public function open()
|
||||
public function open(): void
|
||||
{
|
||||
$this->page = 1;
|
||||
}
|
||||
|
||||
public function turnPage()
|
||||
public function turnPage(): void
|
||||
{
|
||||
$this->page++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user