Completed
Branch master (a2afd1)
by Baptiste
02:41 queued 39s
created
src/AbstractSnapshot.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@  discard block
 block discarded – undo
37 37
     /** @var string Set class to use */
38 38
     private $setClass = 'Totem\\Set';
39 39
 
40
+    /**
41
+     * @param string $class
42
+     */
40 43
     public function setSetClass($class)
41 44
     {
42 45
         $reflection = new ReflectionClass($class);
@@ -96,7 +99,7 @@  discard block
 block discarded – undo
96 99
     /**
97 100
      * Returns the keys of the data
98 101
      *
99
-     * @return array
102
+     * @return integer[]
100 103
      * @throws InvalidArgumentException If the frozen data is not an array
101 104
      */
102 105
     final public function getDataKeys()
Please login to merge, or discard this patch.
src/Set.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
     /**
164 164
      * Calculate the difference between two snapshots for a given key
165 165
      *
166
-     * @param mixed $key Key to compare
166
+     * @param integer $key Key to compare
167 167
      *
168 168
      * @return AbstractChange|null a change if a change was detected, null otherwise
169 169
      * @internal
Please login to merge, or discard this patch.
src/SetInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -48,6 +48,7 @@
 block discarded – undo
48 48
      *
49 49
      * @param AbstractSnapshot $old Old snapshot
50 50
      * @param AbstractSnapshot $new New snapshot
51
+     * @return void
51 52
      */
52 53
     public function compute(AbstractSnapshot $old, AbstractSnapshot $new);
53 54
 }
Please login to merge, or discard this patch.
src/Snapshot/CollectionSnapshot.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      *                   on the situation.
51 51
      *
52 52
      * @param mixed $data    Either an array or a traversable, data to take a snapshot of
53
-     * @param mixed $primary Property path compatible value to use to get the primary key of each elements
53
+     * @param string $primary Property path compatible value to use to get the primary key of each elements
54 54
      * @param array $options Array of options
55 55
      *
56 56
      * @throws InvalidArgumentException the $data is not an array or a Traversable
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     /**
129 129
      * Returns the original key for the primary key $primary
130 130
      *
131
-     * @param mixed $primary Primary key to search
131
+     * @param string $primary Primary key to search
132 132
      *
133 133
      * @return integer original key
134 134
      * @throws InvalidArgumentException primary key not found
Please login to merge, or discard this patch.