Exiftool   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 32
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCommand() 0 4 1
A path() 0 4 1
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
}