Completed
Push — master ( c5ec2d...1e9b29 )
by Till
03:26
created

CommandReceived::__construct()   A

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
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace TillKruss\LaravelTactician\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
use League\Tactician\CommandEvents\Event\HasCommand;
7
use League\Tactician\CommandEvents\Event\CommandEvent;
8
9
class CommandReceived implements CommandEvent
10
{
11
    use HasCommand, SerializesModels;
12
13
    /**
14
     * Create a new "command received" event object.
15
     *
16
     * @param object  $command
17
     */
18
    public function __construct($command)
19
    {
20
        $this->command = $command;
21
    }
22
}
23