Completed
Push — master ( 2b4b54...68f327 )
by Daniel
04:56
created

NoDisplay   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 1
Metric Value
wmc 1
c 3
b 0
f 1
lcom 0
cbo 2
dl 0
loc 13
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Ghostscript package
4
 *
5
 * @author Simon Schrape <[email protected]>
6
 */
7
8
namespace GravityMedia\Ghostscript\Device;
9
10
use GravityMedia\Ghostscript\Ghostscript;
11
use GravityMedia\Ghostscript\Process\Arguments;
12
13
/**
14
 * The no display device class
15
 *
16
 * @package GravityMedia\Ghostscript\Devices
17
 */
18
class NoDisplay extends AbstractDevice
19
{
20
    /**
21
     * Create no display device object
22
     *
23
     * @param Ghostscript $ghostscript
24
     * @param Arguments   $arguments
25
     */
26 2
    public function __construct(Ghostscript $ghostscript, Arguments $arguments)
27
    {
28 2
        parent::__construct($ghostscript, $arguments->setArgument('-dNODISPLAY'));
29 2
    }
30
}
31