GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Renderer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Halfpastfour\PHPChartJS\Renderer;
4
5
use Halfpastfour\PHPChartJS\Chart;
6
7
/**
8
 * Class Renderer
9
 * @package Halfpastfour\PHPChartJS\Renderer
10
 */
11
abstract class Renderer implements RendererInterface
12
{
13
    /**
14
     * Flag used for rendering JSON in pretty mode.
15
     */
16
    const RENDER_PRETTY = 1;
17
18
    /**
19
     * @var Chart The chart that needs to be rendered.
20
     */
21
    protected $chart;
22
23
    /**
24
     * RendererInterface constructor. Expects an instance of a chart.
25
     *
26
     * @param Chart $chart The Chart that needs to be rendered.
27
     */
28
    public function __construct(Chart $chart)
29
    {
30
        $this->chart = $chart;
31
    }
32
}
33