mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-08 16:06:31 +02:00
fix: add return types for all methods
This commit is contained in:
@@ -16,17 +16,17 @@ class ContextOrder
|
||||
return $order;
|
||||
}
|
||||
|
||||
public function setState(StateOrder $state)
|
||||
public function setState(StateOrder $state): void
|
||||
{
|
||||
$this->state = $state;
|
||||
}
|
||||
|
||||
public function proceedToNext()
|
||||
public function proceedToNext(): void
|
||||
{
|
||||
$this->state->proceedToNext($this);
|
||||
}
|
||||
|
||||
public function toString()
|
||||
public function toString(): string
|
||||
{
|
||||
return $this->state->toString();
|
||||
}
|
||||
|
Reference in New Issue
Block a user