XAxisConfig   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 6
c 2
b 0
f 0
dl 0
loc 17
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Afonso\Plotta;
4
5
class XAxisConfig extends AxisConfig
6
{
7
    /**
8
     * @var array
9
     */
10
    public $labels;
11
12
    /**
13
     * @var string
14
     */
15
    public $dateFormat;
16
17
    public function __construct(string $name, array $labels, string $dateFormat = null)
18
    {
19
        parent::__construct($name);
20
        $this->labels = $labels;
21
        $this->dateFormat = $dateFormat;
22
    }
23
}
24