FlagNewEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 5
c 1
b 0
f 1
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
/*
3
* File:     FlagNewEvent.php
4
* Category: Event
5
* Author:   M. Goldenbaum
6
* Created:  25.11.20 22:21
7
* Updated:  -
8
*
9
* Description:
10
*  -
11
*/
12
13
namespace Webklex\PHPIMAP\Events;
14
15
use Webklex\PHPIMAP\Message;
16
17
/**
18
 * Class FlagNewEvent
19
 *
20
 * @package Webklex\PHPIMAP\Events
21
 */
22
class FlagNewEvent extends Event {
23
24
    /** @var Message $message */
25
    public $message;
26
27
    /** @var string $flag */
28
    public $flag;
29
30
    /**
31
     * Create a new event instance.
32
     * @var mixed[] $arguments
33
     * @return void
34
     */
35
    public function __construct($arguments) {
36
        $this->message = $arguments[0];
37
        $this->flag = $arguments[1];
38
    }
39
}
40