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

DeleteResourceEvent::getResourceClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
rs 10
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