Test Failed
Push — master ( e86404...1009d9 )
by Tomasz
03:01
created

MoveCategoryRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
/**
3
 * (c) Tomasz Kunicki <[email protected]>
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
namespace Domain\CategoryStructure\UseCase\MoveCategory;
9
10
use Domain\Category\Entity\CategoryInterface;
11
12
/**
13
 * Class MoveCategoryRequest
14
 *
15
 * @package Domain\CategoryStructure\UseCase\MoveCategory
16
 */
17
class MoveCategoryRequest
18
{
19
    /** @var  CategoryInterface */
20
    private $child;
21
22
    /** @var  CategoryInterface */
23
    private $newParent;
24
25
    /**
26
     * MoveCategoryRequest constructor.
27
     *
28
     * @param CategoryInterface $child
29
     * @param CategoryInterface $newParent
30
     */
31
    public function __construct(CategoryInterface $child, CategoryInterface $newParent)
32
    {
33
        $this->child = $child;
34
        $this->newParent = $newParent;
35
    }
36
37
    /**
38
     * @return CategoryInterface
39
     */
40
    public function getChild()
41
    {
42
        return $this->child;
43
    }
44
45
    /**
46
     * @return CategoryInterface
47
     */
48
    public function getNewParent()
49
    {
50
        return $this->newParent;
51
    }
52
}