From 898afc5dec9709b9db646a3da93f6bfa6c8a9d02 Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Fri, 28 Feb 2014 02:34:19 +0100 Subject: [PATCH] Removing the factory interface and adjusting the AbstractFactory, do not see a reason to keep this interface. --- lib/Tmdb/Factory/AbstractFactory.php | 2 +- lib/Tmdb/Factory/FactoryInterface.php | 25 ------------------------- 2 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 lib/Tmdb/Factory/FactoryInterface.php diff --git a/lib/Tmdb/Factory/AbstractFactory.php b/lib/Tmdb/Factory/AbstractFactory.php index 34cc63f7..f11e9902 100644 --- a/lib/Tmdb/Factory/AbstractFactory.php +++ b/lib/Tmdb/Factory/AbstractFactory.php @@ -21,7 +21,7 @@ * Class AbstractFactory * @package Tmdb\Factory */ -abstract class AbstractFactory implements FactoryInterface { +abstract class AbstractFactory { /** * Convert an array to an hydrated object * diff --git a/lib/Tmdb/Factory/FactoryInterface.php b/lib/Tmdb/Factory/FactoryInterface.php deleted file mode 100644 index 1afcaaba..00000000 --- a/lib/Tmdb/Factory/FactoryInterface.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @copyright (c) 2013, Michael Roterman - * @version 0.0.1 - */ -namespace Tmdb\Factory; - -/** - * Interface FactoryInterface - * @package Tmdb\Factory - */ -interface FactoryInterface { - - /** - * @return \Tmdb\Model\AbstractModel|null - */ - function create(); -}