Completed
Push — master ( a18731...e2e070 )
by
unknown
99:54 queued 47:45
created

WebsiteEventsChartProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getNumberOfShadeColors() 0 4 1
A formatGroup() 0 4 1
A getData() 0 7 1
1
<?php
2
3
namespace OroCRM\Bundle\MagentoBundle\Provider;
4
5
/**
6
 * {@inheritdoc}
7
 */
8
class WebsiteEventsChartProvider extends WebsiteChartProvider
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    protected function getNumberOfShadeColors($data)
14
    {
15
        return 0;
16
    }
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    protected function formatGroup(array $row)
22
    {
23
        return $this->getLegendLabel($row['name']);
24
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    protected function getData(array $customers)
30
    {
31
        return $this->visitEventProvider->getCustomerEventsCountByDate(
32
            $customers,
33
            $this->getEvents()
34
        );
35
    }
36
}
37