Completed
Push — master ( c2e437...26f0c3 )
by Siro Díaz
02:10
created

TrieNode   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace DataStructures\Trees;
4
5
class TrieNode {
6
    public $char;
7
    public $isWord;
8
    public $children;
9
    public $size;
10
11
    public function __construct($char = '', $isWord = false) {
12
        $this->char = $char;
13
        $this->isWord = $isWord;
14
        $this->children = [];
15
        $this->size = 0;
16
    }
17
}