BorderCommandOption::__construct()   A
last analyzed

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
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Jackal\ImageMerge\Command\Options;
4
5
use Jackal\ImageMerge\Model\Color;
6
7
/**
8
 * Class BorderCommandOption
9
 * @package Jackal\ImageMerge\Command\Options
10
 */
11
class BorderCommandOption extends AbstractCommandOption
12
{
13
    /**
14
     * BorderCommandOption constructor.
15
     * @param $stroke
16
     * @param $color
17
     */
18
    public function __construct($stroke, Color $color)
19
    {
20
        $this->add('stroke', $stroke);
21
        $this->add('color', $color);
22
    }
23
24
    /**
25
     * @return mixed
26
     */
27
    public function getColor()
28
    {
29
        return $this->get('color');
30
    }
31
32
    /**
33
     * @return mixed
34
     */
35
    public function getStroke()
36
    {
37
        return $this->get('stroke');
38
    }
39
}
40