mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-27 02:00:20 +02:00
17 lines
288 B
PHP
17 lines
288 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace DesignPatterns\Structural\Decorator;
|
|
|
|
class DoubleRoomBooking implements Booking
|
|
{
|
|
public function calculatePrice(): int
|
|
{
|
|
return 40;
|
|
}
|
|
|
|
public function getDescription(): string
|
|
{
|
|
return 'double room';
|
|
}
|
|
}
|