Download   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%
Metric Value
dl 0
loc 30
wmc 3
lcom 0
cbo 1
ccs 10
cts 10
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getDataset() 0 4 1
A getFormat() 0 4 1
1
<?php
2
3
namespace Fmaj\LaposteDatanovaBundle\Model;
4
5
class Download extends Parameters
6
{
7
    /**
8
     * @param string $dataset (mandatory) datasetid
9
     * @param string $format
10
     */
11 1
    public function __construct($dataset, $format)
12
    {
13 1
        $parameters = array();
14 1
        $parameters['dataset'] = $dataset;
15 1
        $parameters['format'] = $format;
16 1
        parent::__construct($parameters);
17 1
    }
18
19
    /**
20
     * @return string
21
     */
22 1
    public function getDataset()
23
    {
24 1
        return $this->get('dataset');
25
    }
26
27
    /**
28
     * @return string
29
     */
30 1
    public function getFormat()
31
    {
32 1
        return $this->get('format');
33
    }
34
}
35