CreateCommandScheduleRequest::getCommandParams()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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