Completed
Push — master ( 535c5b...32bf59 )
by Jonathan André
03:14
created
src/Doctrine/Common/Interfaces/BaseRepositoryInterface.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -4,12 +4,18 @@  discard block
 block discarded – undo
4 4
 
5 5
 interface BaseRepositoryInterface
6 6
 {
7
+    /**
8
+     * @return boolean|null
9
+     */
7 10
     public function validate(BaseEntityInterface $entity);
8 11
 
9 12
     public function getEntityName();
10 13
 
11 14
     public function query();
12 15
 
16
+    /**
17
+     * @return \Bludata\Doctrine\ORM\Repositories\QueryWorker
18
+     */
13 19
     public function findAll();
14 20
 
15 21
     public function findOneBy(array $filters, $abort = true);
@@ -32,7 +38,13 @@  discard block
 block discarded – undo
32 38
 
33 39
     public function createEntity();
34 40
 
41
+    /**
42
+     * @return \Bludata\Doctrine\ORM\Repositories\QueryWorker
43
+     */
35 44
     public function createQueryWorker();
36 45
 
46
+    /**
47
+     * @return string
48
+     */
37 49
     public function getMessageNotFound();
38 50
 }
Please login to merge, or discard this patch.
src/Doctrine/ODM/MongoDB/Repositories/BaseRepository.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@  discard block
 block discarded – undo
12 12
 {
13 13
     abstract public function preSave(BaseEntityInterface $entity);
14 14
 
15
+    /**
16
+     * @return string
17
+     */
15 18
     abstract public function getMessageNotFound();
16 19
 
17 20
     public function validate(BaseEntityInterface $entity)
@@ -40,6 +43,9 @@  discard block
 block discarded – undo
40 43
         return parent::getClassMetadata();
41 44
     }
42 45
 
46
+    /**
47
+     * @return string|null
48
+     */
43 49
     public function getEntityName()
44 50
     {
45 51
         return parent::getDocumentName();
@@ -137,7 +143,7 @@  discard block
 block discarded – undo
137 143
     }
138 144
 
139 145
     /**
140
-     * @param Bludata\Entities\BaseEntityInterface $entity
146
+     * @param BaseEntityInterface $entity
141 147
      *
142 148
      * @return Bludata\Repositories\QueryWorker
143 149
      */
@@ -149,7 +155,7 @@  discard block
 block discarded – undo
149 155
     }
150 156
 
151 157
     /**
152
-     * @param Bludata\Entities\BaseEntityInterface $entity
158
+     * @param BaseEntityInterface $entity
153 159
      *
154 160
      * @return Bludata\Repositories\QueryWorker
155 161
      */
Please login to merge, or discard this patch.
src/Doctrine/Common/Interfaces/BaseEntityInterface.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -6,18 +6,36 @@  discard block
 block discarded – undo
6 6
 {
7 7
     public function getId();
8 8
 
9
+    /**
10
+     * @return \Bludata\Doctrine\ORM\Entities\BaseEntity
11
+     */
9 12
     public function save($flush = false);
10 13
 
14
+    /**
15
+     * @return \Bludata\Doctrine\ORM\Entities\BaseEntity
16
+     */
11 17
     public function remove();
12 18
 
19
+    /**
20
+     * @return \Bludata\Doctrine\ORM\Entities\BaseEntity
21
+     */
13 22
     public function flush($all = true);
14 23
 
15 24
     public function getRepository();
16 25
 
26
+    /**
27
+     * @return \Bludata\Doctrine\ORM\Entities\BaseEntity
28
+     */
17 29
     public function forcePersist();
18 30
 
31
+    /**
32
+     * @return void
33
+     */
19 34
     public function prePersist();
20 35
 
36
+    /**
37
+     * @return void
38
+     */
21 39
     public function preUpdate();
22 40
 
23 41
     /**
@@ -44,6 +62,7 @@  discard block
 block discarded – undo
44 62
      * Set all attributes of the Entity with the values in $data.
45 63
      *
46 64
      * @param array $data Key value pair to set attributes
65
+     * @return \Bludata\Doctrine\ORM\Entities\BaseEntity
47 66
      */
48 67
     public function setPropertiesEntity(array $data);
49 68
 
Please login to merge, or discard this patch.