Conditions | 4 |
Paths | 6 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 4 |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
38 | 2 | public function __construct($definition) |
|
39 | { |
||
40 | 2 | parent::__construct($definition); |
|
41 | |||
42 | 2 | if (isset($definition->ts)) { |
|
43 | 2 | $this->transcription = $definition->ts; |
|
44 | 2 | } |
|
45 | |||
46 | 2 | if (isset($definition->tr)) { |
|
47 | 2 | foreach ($definition->tr as $translation) { |
|
48 | 2 | $this->translations[] = new DictionaryTranslation($translation); |
|
49 | 2 | } |
|
50 | 2 | } |
|
51 | 2 | } |
|
52 | |||
69 |