DeliveredItemEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 26
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace yiicod\mailqueue\events;
4
5
use yii\base\Event;
6
use yiicod\mailqueue\models\MailRepositoryInterface;
7
8
class DeliveredItemEvent extends Event
9
{
10
    /**
11
     * @var bool
12
     */
13
    public $isSuccess;
14
15
    /**
16
     * @var MailRepositoryInterface
17
     */
18
    public $model;
19
20
    /**
21
     * DeliveredItemEvent constructor.
22
     *
23
     * @param bool $isSuccess
24
     * @param array $model
25
     * @param array $config
26
     */
27
    public function __construct(bool $isSuccess, MailRepositoryInterface $model, array $config = [])
28
    {
29
        $this->isSuccess = $isSuccess;
30
        $this->model = $model;
31
        parent::__construct($config);
32
    }
33
}
34