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

Credits::setEnabledAttribute()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
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