aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/DAVACL/MockPrincipal.php
blob: dd8542b8deca3b57d1e76d4c9d2b5aa5468bf9b4 (plain) (tree)

































































                                                                                                                 
<?php

namespace Sabre\DAVACL;

use Sabre\DAV;
use Sabre\HTTP;

class MockPrincipal extends DAV\Node implements IPrincipal {

    public $name;
    public $principalUrl;
    public $groupMembership = array();
    public $groupMemberSet = array();

    function __construct($name,$principalUrl,array $groupMembership = array(), array $groupMemberSet = array()) {

        $this->name = $name;
        $this->principalUrl = $principalUrl;
        $this->groupMembership = $groupMembership;
        $this->groupMemberSet = $groupMemberSet;

    }

    function getName() {

        return $this->name;

    }

    function getDisplayName() {

        return $this->getName();

    }

    function getAlternateUriSet() {

        return array();

    }

    function getPrincipalUrl() {

        return $this->principalUrl;

    }

    function getGroupMemberSet() {

        return $this->groupMemberSet;

    }

    function getGroupMemberShip() {

        return $this->groupMembership;

    }

    function setGroupMemberSet(array $groupMemberSet) {

        $this->groupMemberSet = $groupMemberSet;

    }
}