Download::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1
Metric Value
dl 0
loc 7
ccs 6
cts 6
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 2
crap 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