WebMoneyMerchantEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace ActionM\WebMoneyMerchant\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
7
class WebMoneyMerchantEvent
8
{
9
    use SerializesModels;
10
11
    public $type;
12
    public $title;
13
    public $details;
14
    public $ip;
15
16
    /**
17
     * Create a new event instance.
18
     * @param $type
19
     * @param $details
20
     */
21
    public function __construct($type, $details)
22
    {
23
        $this->type = $type;
24
        $this->title = $details['title'];
25
        $this->details = print_r($details['request'], true);
26
        $this->ip = $details['ip'];
27
    }
28
}
29