mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +02:00
PHP8
This commit is contained in:
@@ -4,10 +4,7 @@ namespace DesignPatterns\Structural\Decorator;
|
||||
|
||||
abstract class BookingDecorator implements Booking
|
||||
{
|
||||
protected Booking $booking;
|
||||
|
||||
public function __construct(Booking $booking)
|
||||
public function __construct(protected Booking $booking)
|
||||
{
|
||||
$this->booking = $booking;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user