mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 01:32:22 +01:00
18 lines
288 B
PHP
18 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';
|
|
}
|
|
}
|