Passed
Push — drivers ( 5f8646...aadeb1 )
by Joe
01:53
created

CacheEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace PhpWinTools\WmiScripting\Support\Cache\Events;
4
5
use PhpWinTools\WmiScripting\Support\Events\Event;
6
use PhpWinTools\WmiScripting\Support\Events\Payload;
7
use PhpWinTools\WmiScripting\Support\Cache\CacheDriver;
8
9
class CacheEvent extends Event
10
{
11
    public function __construct(CacheDriver $driver, $key = null, $value = null, $ttl = null)
12
    {
13
        parent::__construct(
14
            (new Payload())->add('driver', $driver)->add('key', $key)->add('value', $value)->add('ttl', $ttl)
15
        );
16
    }
17
}
18