BeforeFederationRedirectEvent   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 38
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getRelativePath() 0 3 1
A getNode() 0 3 1
A getRemote() 0 3 1
A setRedirectUrl() 0 3 1
A getRedirectUrl() 0 3 1
1
<?php
2
3
namespace OCA\Richdocuments\Events;
4
5
6
use OCP\Files\Node;
7
use Symfony\Component\EventDispatcher\Event;
8
9
class BeforeFederationRedirectEvent extends Event {
10
11
    /** @var Node */
12
    private $node;
13
    /** @var string */
14
    private $relativePath;
15
    /** @var string|null */
16
    private $redirectUrl = null;
17
    /** @var string */
18
    private $remote;
19
20
    public function __construct($node, $relativePath, $remote) {
21
        $this->node = $node;
22
        $this->relativePath = $relativePath;
23
        $this->remote = $remote;
24
    }
25
26
    public function getRelativePath() {
27
        return $this->relativePath;
28
    }
29
30
    public function getNode() {
31
        return $this->node;
32
    }
33
34
    public function getRemote() {
35
        return $this->remote;
36
    }
37
38
    public function setRedirectUrl($redirectUrl) {
39
        $this->redirectUrl = $redirectUrl;
40
    }
41
42
    public function getRedirectUrl() {
43
        return $this->redirectUrl;
44
    }
45
46
}