FileInput   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A buildParams() 0 4 1
A setInput() 0 3 1
1
<?php
2
namespace Goetas\ApacheFopBundle\Input;
3
use Symfony\Component\Process\Process;
4
5
use Symfony\Component\Process\ProcessBuilder;
6
7
class FileInput implements InputInterface
8
{
9
    private $file;
10
    public function __construct($file)
11
    {
12
        $this->file = $file;
13
    }
14
    public function buildParams(ProcessBuilder $proc)
15
    {
16
        $proc->add($this->file);
17
    }
18
    public function setInput(Process $proc)
19
    {
20
    }
21
}
22