mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-09 00:16:32 +02:00
refactored Decorator pattern
This commit is contained in:
16
Structural/Decorator/BookingDecorator.php
Normal file
16
Structural/Decorator/BookingDecorator.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Structural\Decorator;
|
||||
|
||||
abstract class BookingDecorator implements Booking
|
||||
{
|
||||
/**
|
||||
* @var Booking
|
||||
*/
|
||||
protected $booking;
|
||||
|
||||
public function __construct(Booking $booking)
|
||||
{
|
||||
$this->booking = $booking;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user