made some refactoring
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package: patterns
|
||||
* @parcel: patterns
|
||||
* @author: Yevhen Odynets
|
||||
* @date: 2025-07-03
|
||||
* @time: 20:15
|
||||
@@ -18,8 +18,8 @@ class JustinDeliveryFactory implements AbstractFactoryInterface
|
||||
return new JustinDeliveryService();
|
||||
}
|
||||
|
||||
public function createPackage(): PackageInterface
|
||||
public function createParcel(): ParcelInterface
|
||||
{
|
||||
return new JustinPackage();
|
||||
return new JustinParcel();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user