mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-06-08 23:18:16 +02:00
19 lines
289 B
PHP
19 lines
289 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';
|
|
}
|
|
}
|