aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/DAVACL/MockACLNode.php
blob: 51411f3048ad7c58f46d62c43533afbcc1aa2c40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php

declare(strict_types=1);

namespace Sabre\DAVACL;

use Sabre\DAV;

class MockACLNode extends DAV\Node implements IACL
{
    public $name;
    public $acl;

    public function __construct($name, array $acl = [])
    {
        $this->name = $name;
        $this->acl = $acl;
    }

    public function getName()
    {
        return $this->name;
    }

    public function getOwner()
    {
        return null;
    }

    public function getGroup()
    {
        return null;
    }

    public function getACL()
    {
        return $this->acl;
    }

    public function setACL(array $acl)
    {
        $this->acl = $acl;
    }

    public function getSupportedPrivilegeSet()
    {
        return null;
    }
}