Passed
Branch main (a5ccba)
by Gaetano
04:40
created

FileFieldHandler::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Kaliop\eZMigrationBundle\Core\FieldHandler;
4
5
use eZ\Publish\Core\IO\UrlDecorator;
6
7
class FileFieldHandler extends AbstractFieldHandler
8
{
9
    protected $ioRootDir;
10
    protected $ioDecorator;
11
    protected $ioService;
12
13 149
    public function __construct($ioRootDir, UrlDecorator $ioDecorator=null, $ioService=null)
14
    {
15 149
        $this->ioRootDir = $ioRootDir;
16 149
        $this->ioDecorator = $ioDecorator;
17 149
        $this->ioService = $ioService;
18 149
    }
19
}
20