From 886c5177e7a8657b911344734bdd1c330bd18bc5 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Sun, 20 Apr 2014 01:09:25 +0200 Subject: [PATCH] Fix typo & add type --- lib/public/appframework/db/mapper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/public/appframework/db/mapper.php b/lib/public/appframework/db/mapper.php index 46240649c7..f65a232ed8 100644 --- a/lib/public/appframework/db/mapper.php +++ b/lib/public/appframework/db/mapper.php @@ -40,7 +40,7 @@ abstract class Mapper { private $db; /** - * @param Db $db Instance of the Db abstraction layer + * @param IDb $db Instance of the Db abstraction layer * @param string $tableName the name of the table. set this to allow entity * @param string $entityClass the name of the entity that the sql should be * mapped to queries without using sql @@ -79,8 +79,8 @@ abstract class Mapper { /** * Creates a new entry in the db from an entity - * @param Entity $enttiy the entity that should be created - * @return the saved entity with the set id + * @param Entity $entity the entity that should be created + * @return Entity the saved entity with the set id */ public function insert(Entity $entity){ // get updated fields to save, fields have to be set using a setter to @@ -124,7 +124,7 @@ abstract class Mapper { /** * Updates an entry in the db from an entity * @throws \InvalidArgumentException if entity has no id - * @param Entity $enttiy the entity that should be created + * @param Entity $entity the entity that should be created */ public function update(Entity $entity){ // entity needs an id