CreateCategoryCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Application\Command\Category\Create;
6
7
/**
8
 * Class CreateCategoryCommand.
9
 */
10
class CreateCategoryCommand
11
{
12
    /**
13
     * @var string
14
     */
15
    private $name;
16
17
    /**
18
     * CreateCategoryCommand constructor.
19
     *
20
     * @param string $name
21
     */
22
    public function __construct(string $name)
23
    {
24
        $this->name = $name;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getName(): string
31
    {
32
        return $this->name;
33
    }
34
}
35