ImagineOptions::getImageLib()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @license MIT
7
 * @copyright https://yawik.org/COPYRIGHT.php
8
 */
9
10
/** */
11
namespace Core\Options;
12
13
use Laminas\Stdlib\AbstractOptions;
14
15
/**
16
 * Options for the Imagine library.
17
 *
18
 * @author Mathias Gelhausen <[email protected]>
19
 * @since 0.29
20
 */
21
class ImagineOptions extends AbstractOptions
22
{
23
24
    /**#@+
25
     * Image library.
26
     *
27
     * @var string
28
     */
29
    const LIB_GD = 'Gd';
30
    const LIB_IMAGICK = 'Imagick';
31
    const LIB_GMAGICK = 'Gmagick';
32
33
    /**#@-*/
34
35
    /**
36
     * The image library to be used.
37
     *
38
     * @var string
39
     */
40
    protected $imageLib = self::LIB_GD;
41
42
    /**
43
     * @param string $imageLib
44
     *
45
     * @return self
46
     */
47
    public function setImageLib($imageLib)
48
    {
49
        $this->imageLib = $imageLib;
50
51
        return $this;
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getImageLib()
58
    {
59
        return $this->imageLib;
60
    }
61
}
62