mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 17:52:25 +01:00
18 lines
306 B
PHP
18 lines
306 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Behavioral\TemplateMethod;
|
|
|
|
/**
|
|
* BeachJourney is vacation at the beach
|
|
*/
|
|
class BeachJourney extends Journey
|
|
{
|
|
/**
|
|
* prints what to do to enjoy your vacation
|
|
*/
|
|
protected function enjoyVacation()
|
|
{
|
|
echo "Swimming and sun-bathing\n";
|
|
}
|
|
}
|