mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-23 00:01:22 +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';
|
|
}
|
|
}
|