Exiftool::path()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace ExiftoolReader\Config;
4
5
/**
6
 * Class Config
7
 */
8
class Exiftool extends AbstractConfig
9
{
10
    /**
11
     * Config.
12
     *
13
     * @var array
14
     */
15
    protected $config = [
16
        'path'    => '/usr/bin/exiftool',
17
        'command' => 'exiftool -j %s',
18
    ];
19
20
    /**
21
     * Get exiftool read command.
22
     *
23
     * @return string
24
     */
25
    public function getCommand()
26
    {
27
        return $this->config['command'];
28
    }
29
30
    /**
31
     * Where the exiftool is.
32
     *
33
     * @return string
34
     */
35
    public function path()
36
    {
37
        return $this->config['path'];
38
    }
39
}