DimensionCommandOption::getDimention()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Jackal\ImageMerge\Command\Options;
4
5
use Jackal\ImageMerge\ValueObject\Dimention;
6
7
/**
8
 * Class DimensionCommandOption
9
 * @package Jackal\ImageMerge\Command\Options
10
 */
11
class DimensionCommandOption extends AbstractCommandOption
12
{
13
    /**
14
     * DimensionCommandOption constructor.
15
     * @param Dimention $dimention
16
     */
17
    public function __construct(Dimention $dimention)
18
    {
19
        $this->add('dimention', $dimention);
20
    }
21
22
    /**
23
     * @return Dimention
24
     */
25
    public function getDimention()
26
    {
27
        return $this->get('dimention');
28
    }
29
}
30