mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-25 02:02:26 +01:00
20 lines
260 B
PHP
20 lines
260 B
PHP
<?php
|
|
|
|
/*
|
|
* DesignPatternPHP
|
|
*/
|
|
|
|
namespace DesignPatterns\TemplateMethod;
|
|
|
|
/**
|
|
* BeachJourney is vacation at the beach
|
|
*/
|
|
class BeachJourney extends Journey
|
|
{
|
|
|
|
protected function enjoyVacation()
|
|
{
|
|
echo "Swimming and sun-bathing\n";
|
|
}
|
|
|
|
} |