mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-21 05:51:37 +02:00
start a restructure
This commit is contained in:
17
Behavioral/TemplateMethod/BeachJourney.php
Normal file
17
Behavioral/TemplateMethod/BeachJourney.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\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";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user