mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 09:42:24 +01:00
18 lines
317 B
PHP
18 lines
317 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";
|
|
}
|
|
}
|