__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\ValueObject\Coordinate;
6
use Jackal\ImageMerge\Model\File\FileObjectInterface;
7
8
/**
9
 * Class SingleCoordinateFileObjectCommandOption
10
 * @package Jackal\ImageMerge\Command\Options
11
 */
12
class SingleCoordinateFileObjectCommandOption extends SingleCoordinateCommandOption
13
{
14
    /**
15
     * SingleCoordinateFileObjectCommandOption constructor.
16
     * @param FileObjectInterface $imageObject
17
     * @param Coordinate $coordinate
18
     */
19
    public function __construct(FileObjectInterface $imageObject, Coordinate $coordinate)
20
    {
21
        parent::__construct($coordinate);
22
        $this->add('file_object', $imageObject);
23
    }
24
25
    /**
26
     * @return mixed
27
     */
28
    public function getFile()
29
    {
30
        return $this->get('file_object');
31
    }
32
}
33