This commit is contained in:
2025-07-03 23:46:08 +03:00
parent 7fe2402ff3
commit ab4499a305
39 changed files with 453 additions and 56 deletions

View File

@@ -22,4 +22,4 @@ interface AbstractFactoryInterface
* @return PackageInterface
*/
public function createPackage(): PackageInterface;
}
}

View File

@@ -14,4 +14,4 @@ namespace Pattern\Creational\AbstractFactory;
interface DeliveryServiceInterface
{
public function sendPackage(PackageInterface $package): void;
}
}

View File

@@ -18,4 +18,4 @@ class JustinDeliveryService implements DeliveryServiceInterface
/** @noinspection ForgottenDebugOutputInspection */
dump("Sending package via Justin...");
}
}
}

View File

@@ -18,4 +18,4 @@ class JustinPackage implements PackageInterface
/** @noinspection ForgottenDebugOutputInspection */
dump('Checking package from Justin...');
}
}
}

View File

@@ -19,4 +19,4 @@ class MeestDeliveryService implements DeliveryServiceInterface
/** @noinspection ForgottenDebugOutputInspection */
dump("Sending package via Meest...");
}
}
}

View File

@@ -18,4 +18,4 @@ class MeestPackage implements PackageInterface
/** @noinspection ForgottenDebugOutputInspection */
dump('Checking package from Meest...');
}
}
}

View File

@@ -18,4 +18,4 @@ class NovapostDeliveryService implements DeliveryServiceInterface
/** @noinspection ForgottenDebugOutputInspection */
dump("Sending package via Novapost...");
}
}
}

View File

@@ -18,4 +18,4 @@ class NovapostPackage implements PackageInterface
/** @noinspection ForgottenDebugOutputInspection */
dump('Checking package from Novapost...');
}
}
}

View File

@@ -14,4 +14,4 @@ namespace Pattern\Creational\AbstractFactory;
interface PackageInterface
{
public function getConsist(): void;
}
}

View File

@@ -18,4 +18,4 @@ class UkrpostDeliveryService implements DeliveryServiceInterface
/** @noinspection ForgottenDebugOutputInspection */
dump("Sending package via Ukrpost...");
}
}
}

View File

@@ -18,4 +18,4 @@ class UkrpostPackage implements PackageInterface
/** @noinspection ForgottenDebugOutputInspection */
dump('Checking package from Ukrpost...');
}
}
}