From 034df4bd61bcee9455359f9ae40a891ea66f45d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Say=C3=A3o=20Lobato=20Abreu?= Date: Sun, 6 Dec 2020 20:31:14 -0300 Subject: [PATCH] Convert AbstractFactory to a final class with private constructor --- src/AbstractFactory.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/AbstractFactory.php b/src/AbstractFactory.php index 775e891..61849bc 100644 --- a/src/AbstractFactory.php +++ b/src/AbstractFactory.php @@ -21,8 +21,19 @@ * * @package CoiSA\Factory */ -abstract class AbstractFactory implements AbstractFactoryInterface +final class AbstractFactory implements AbstractFactoryInterface { + // @codeCoverageIgnoreStart + + /** + * Prevent class from being initialized. + */ + private function __construct() + { + } + + // @codeCoverageIgnoreEnd + /** * {@inheritdoc} *