Event::getEvent()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Jerodev\PhpIrcClient\Helpers;
4
5
class Event
6
{
7
    /** @var string */
8
    private $event;
9
10
    /** @var array */
11
    private $arguments;
12
13
    /**
14
     *  @param string $event The event that is being emitted.
15
     *  @param array $arguments The array of arguments to send to the event callback.
16
     */
17
    public function __construct(string $event, $arguments = [])
18
    {
19
        $this->event = $event;
20
        $this->arguments = $arguments;
21
    }
22
23
    public function getArguments(): array
24
    {
25
        return $this->arguments;
26
    }
27
28
    public function getEvent(): string
29
    {
30
        return $this->event;
31
    }
32
}
33