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

BoundingBoxInfo::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 2
crap 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 bounding box info device class
15
 *
16
 * @link    http://ghostscript.com/doc/current/Devices.htm#Bounding_box_output
17
 *
18
 * @package GravityMedia\Ghostscript\Devices
19
 */
20
class BoundingBoxInfo extends AbstractDevice
21
{
22
    /**
23
     * Create bounding box info device object
24
     *
25
     * @param Ghostscript $ghostscript
26
     * @param Arguments   $arguments
27
     */
28 2
    public function __construct(Ghostscript $ghostscript, Arguments $arguments)
29
    {
30 2
        parent::__construct($ghostscript, $arguments->setArgument('-sDEVICE=bbox'));
31 2
    }
32
}
33