diff options
Diffstat (limited to 'db/mapperfactory.php')
-rw-r--r-- | db/mapperfactory.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/db/mapperfactory.php b/db/mapperfactory.php index 4af75cefa..6bc9346ca 100644 --- a/db/mapperfactory.php +++ b/db/mapperfactory.php @@ -18,23 +18,23 @@ use \OCA\News\Db\Postgres\ItemMapper as PostgresItemMapper; class MapperFactory { - private $dbType; - private $db; - - public function __construct($dbType, IDb $db) { - $this->dbType = $dbType; - $this->db = $db; - } - - - public function getItemMapper() { - switch($this->dbType) { - case 'pgsql': - return new PostgresItemMapper($this->db); - default: - return new ItemMapper($this->db); - } - } + private $dbType; + private $db; + + public function __construct($dbType, IDb $db) { + $this->dbType = $dbType; + $this->db = $db; + } + + + public function getItemMapper() { + switch($this->dbType) { + case 'pgsql': + return new PostgresItemMapper($this->db); + default: + return new ItemMapper($this->db); + } + } }
\ No newline at end of file |