Completed
Push — master ( f0a769...eb5bc6 )
by
unknown
01:58
created

Credits   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setEnabledAttribute() 0 8 2
1
<?php
2
3
Namespace EnergieProduction\Chart\Highcharts\Options;
4
5
use InvalidArgumentException;
6
use EnergieProduction\Chart\Highcharts\Highcharts;
7
8
Class Credits extends Highcharts
9
{
10
	protected function setEnabledAttribute($value)
11
	{
12
		if (! is_bool($value)) {
13
			throw new InvalidArgumentException('Credits Enabled must be : boolean');
14
		}
15
16
		$this->options['enabled'] = $value;
17
	}
18
}
19