CreateCommandScheduleRequest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 30
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCommandParams() 0 3 1
A getCommandName() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
namespace Tkotosz\CommandScheduler\Request;
4
5
class CreateCommandScheduleRequest
6
{
7
    /**
8
     * @var string
9
     */
10
    private $commandName;
11
    
12
    /**
13
     * @var array
14
     */
15
    private $commandParams;
16
    
17
    /**
18
     * @param string $commandName
19
     * @param array  $commandParams
20
     */
21
    public function __construct(string $commandName, array $commandParams = [])
22
    {
23
        $this->commandName = $commandName;
24
        $this->commandParams = $commandParams;
25
    }
26
27
    public function getCommandName(): string
28
    {
29
        return $this->commandName;      
30
    }
31
32
    public function getCommandParams(): array
33
    {
34
        return $this->commandParams;
35
    }
36
}
37