Completed
Push — master ( 850851...b56f02 )
by Siro Díaz
02:49
created
DataStructures/Sets/DisjointSet.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -7,6 +7,9 @@  discard block
 block discarded – undo
7 7
     public $rank;
8 8
     public $data;
9 9
 
10
+    /**
11
+     * @param integer $rank
12
+     */
10 13
     public function __construct(DisjointNode $parent = null, $rank, $data) {
11 14
         $this->parent = $parent;
12 15
         $this->rank = $rank;
@@ -17,6 +20,9 @@  discard block
 block discarded – undo
17 20
 class DisjointSet {
18 21
     public function __construct() {}
19 22
 
23
+    /**
24
+     * @param string $data
25
+     */
20 26
     public function makeSet($data) {
21 27
         $newSet = new DisjointNode(null, 0, $data);
22 28
         $newSet->parent = &$newSet;
Please login to merge, or discard this patch.