18 lines
322 B
PHP
Raw Normal View History

2013-05-12 11:13:37 +02:00
<?php
namespace DesignPatterns\Behavioral\TemplateMethod;
2013-05-12 11:13:37 +02:00
/**
2013-09-12 11:27:01 +02:00
* CityJourney is a journey in a city
2013-05-12 11:13:37 +02:00
*/
2013-09-12 11:27:01 +02:00
class CityJourney extends Journey
2013-05-12 11:13:37 +02:00
{
2013-09-12 11:27:01 +02:00
/**
* prints what to do in your journey to enjoy vacation
*/
2013-05-12 11:13:37 +02:00
protected function enjoyVacation()
{
echo "Eat, drink, take photos and sleep\n";
}
2013-09-12 11:27:01 +02:00
}