@@ -8,6 +8,9 @@ |
||
| 8 | 8 | public $child; |
| 9 | 9 | public $word; |
| 10 | 10 | |
| 11 | + /** |
|
| 12 | + * @param \Autocomplete\Container\Trie\Node $child |
|
| 13 | + */ |
|
| 11 | 14 | public final function execute($string, &$child) |
| 12 | 15 | { |
| 13 | 16 | $this->word = (join($string)); |
@@ -10,9 +10,9 @@ |
||
| 10 | 10 | |
| 11 | 11 | public final function execute($string, &$child) |
| 12 | 12 | { |
| 13 | - $this->word = (join($string)); |
|
| 14 | - $this->child = $child; |
|
| 15 | - return $this->algorithm($string, $child); |
|
| 13 | + $this->word = (join($string)); |
|
| 14 | + $this->child = $child; |
|
| 15 | + return $this->algorithm($string, $child); |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | public final function algorithm($string) |