mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-05 06:27:25 +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;
|
private int $page;
|
||||||
|
|
||||||
public function open()
|
public function open(): void
|
||||||
{
|
{
|
||||||
$this->page = 1;
|
$this->page = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function turnPage()
|
public function turnPage(): void
|
||||||
{
|
{
|
||||||
$this->page++;
|
$this->page++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user