Passed
Push — master ( 3740bc...e69f3f )
by Richard
05:30
created
src/Graph/Graph.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,6 +43,10 @@  discard block
 block discarded – undo
43 43
         return $node;
44 44
     }
45 45
 
46
+    /**
47
+     * @param integer $id
48
+     * @param string $type
49
+     */
46 50
     protected function build_node($id, $type, array $properties = null) {
47 51
         return new Node($id, $type, $properties);
48 52
     }
@@ -64,7 +68,7 @@  discard block
 block discarded – undo
64 68
      * Get nodes from the graph, maybe filtered by a filter.
65 69
      *
66 70
      * @param   Predicate|null    $filter
67
-     * @return  Iterator <Node>
71
+     * @return  \Generator <Node>
68 72
      */
69 73
     public function nodes(Predicate $filter = null) {
70 74
         if ($filter !== null) {
Please login to merge, or discard this patch.