Event   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getEvent() 0 3 1
A __construct() 0 4 1
A getArguments() 0 3 1
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