mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-25 13:59:08 +02:00
12 lines
201 B
PHP
12 lines
201 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Behavioral\TemplateMethod;
|
|
|
|
class BeachJourney extends Journey
|
|
{
|
|
protected function enjoyVacation(): string
|
|
{
|
|
return "Swimming and sun-bathing";
|
|
}
|
|
}
|