aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/DAVACL/MockACLNode.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/DAVACL/MockACLNode.php')
-rw-r--r--vendor/sabre/dav/tests/Sabre/DAVACL/MockACLNode.php56
1 files changed, 56 insertions, 0 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/DAVACL/MockACLNode.php b/vendor/sabre/dav/tests/Sabre/DAVACL/MockACLNode.php
new file mode 100644
index 000000000..7b3e8fc12
--- /dev/null
+++ b/vendor/sabre/dav/tests/Sabre/DAVACL/MockACLNode.php
@@ -0,0 +1,56 @@
+<?php
+
+namespace Sabre\DAVACL;
+
+use Sabre\DAV;
+use Sabre\HTTP;
+
+class MockACLNode extends DAV\Node implements IACL {
+
+ public $name;
+ public $acl;
+
+ function __construct($name, array $acl = array()) {
+
+ $this->name = $name;
+ $this->acl = $acl;
+
+ }
+
+ function getName() {
+
+ return $this->name;
+
+ }
+
+ function getOwner() {
+
+ return null;
+
+ }
+
+ function getGroup() {
+
+ return null;
+
+ }
+
+ function getACL() {
+
+ return $this->acl;
+
+ }
+
+ function setACL(array $acl) {
+
+ $this->acl = $acl;
+
+ }
+
+ function getSupportedPrivilegeSet() {
+
+ return null;
+
+ }
+
+}