Completed
Push — master ( bdc37e...5a8dc8 )
by Daniel
10s
created

BoundingBoxInfo::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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