mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-05-02 04:38:16 +02:00
17 lines
318 B
PHP
17 lines
318 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace DesignPatterns\Behavioral\TemplateMethod;
|
|
|
|
class CityJourney extends Journey
|
|
{
|
|
protected function enjoyVacation(): string
|
|
{
|
|
return "Eat, drink, take photos and sleep";
|
|
}
|
|
|
|
protected function buyGift(): ?string
|
|
{
|
|
return "Buy a gift";
|
|
}
|
|
}
|