Completed
Push — master ( 2443a5...30fba1 )
by Julius
23:37 queued 13:34
created

BeforeFederationRedirectEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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