Passed
Branch 3.3 (35580f)
by Pieter
15:26
created

DeleteResourceEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getResourceClass() 0 3 1
A __construct() 0 4 1
A getId() 0 3 1
1
<?php
2
3
4
namespace W2w\Lib\Apie\Events;
5
6
/**
7
 * Event mediator for the event for deleting a resource.
8
 */
9
class DeleteResourceEvent
10
{
11
    /**
12
     * @var string
13
     */
14
    private $resourceClass;
15
16
    /**
17
     * @var string
18
     */
19
    private $id;
20
21
    public function __construct(string $resourceClass, string $id)
22
    {
23
        $this->resourceClass = $resourceClass;
24
        $this->id = $id;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getResourceClass(): string
31
    {
32
        return $this->resourceClass;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getId(): string
39
    {
40
        return $this->id;
41
    }
42
}
43