mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +02:00
17 lines
292 B
PHP
17 lines
292 B
PHP
<?php
|
|
|
|
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";
|
|
}
|
|
}
|