Conditions | 2 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | 6 | public function build() |
|
37 | { |
||
38 | 6 | $config = $this->classMetadata->getExtension(Fluent::EXTENSION_NAME); |
|
39 | |||
40 | 6 | $config['loggable'] = true; |
|
41 | 6 | $config['versioned'] = array_unique(array_merge( |
|
42 | 6 | isset($config['versioned']) ? $config['versioned'] : [], |
|
43 | [ |
||
44 | 6 | $this->fieldName, |
|
45 | ] |
||
46 | 6 | )); |
|
47 | |||
48 | 6 | $this->classMetadata->addExtension(Fluent::EXTENSION_NAME, $config); |
|
49 | 6 | } |
|
50 | } |
||
51 |