Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
33.33% covered (danger)
33.33%
1 / 3
33.33% covered (danger)
33.33%
1 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
InstanceCopiedEvent
33.33% covered (danger)
33.33%
1 / 3
33.33% covered (danger)
33.33%
1 / 3
5.67
0.00% covered (danger)
0.00%
0 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getName
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getInstanceUri
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace oat\tao\model\resources\Event;
4
5use oat\oatbox\event\Event;
6
7class InstanceCopiedEvent implements Event
8{
9    private string $instanceUri;
10
11    public function __construct(string $instanceUri)
12    {
13        $this->instanceUri = $instanceUri;
14    }
15
16    public function getName(): string
17    {
18        return __CLASS__;
19    }
20
21    public function getInstanceUri(): string
22    {
23        return $this->instanceUri;
24    }
25}