Completed
Pull Request — develop (#27)
by Chris
13:09
created

UriAddingEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setUri() 0 6 1
A getUri() 0 4 1
1
<?php
2
3
namespace Chrisyue\PhpM3u8\Parser\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
class UriAddingEvent extends Event
8
{
9
    /**
10
     * @var string
11
     */
12
    private $uri;
13
14
    public function __construct($uri)
15
    {
16
        $this->uri = $uri;
17
    }
18
19
    /**
20
     * @param string $uri
21
     *
22
     * @return self
23
     */
24
    public function setUri($uri)
25
    {
26
        $this->uri = $uri;
27
28
        return $this;
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getUri()
35
    {
36
        return $this->uri;
37
    }
38
}
39