mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-03 05:27:29 +02:00
14 lines
227 B
PHP
14 lines
227 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace DesignPatterns\Behavioral\TemplateMethod;
|
|
|
|
class BeachJourney extends Journey
|
|
{
|
|
protected function enjoyVacation(): string
|
|
{
|
|
return "Swimming and sun-bathing";
|
|
}
|
|
}
|