26 lines
470 B
PHP
26 lines
470 B
PHP
<?php
|
|
|
|
/**
|
|
* @parcel: patterns
|
|
* @author: Yevhen Odynets
|
|
* @date: 2025-07-03
|
|
* @time: 20:15
|
|
*/
|
|
|
|
declare(strict_types = 1);
|
|
|
|
namespace Pattern\Creational\AbstractFactory;
|
|
|
|
class JustinDeliveryFactory implements AbstractFactoryInterface
|
|
{
|
|
public function createDeliveryService(): DeliveryServiceInterface
|
|
{
|
|
return new JustinDeliveryService();
|
|
}
|
|
|
|
public function createParcel(): ParcelInterface
|
|
{
|
|
return new JustinParcel();
|
|
}
|
|
}
|