ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
Capability.php
Go to the documentation of this file.
1 <?php
2 
23 namespace ILIAS\File\Capabilities;
24 
25 use ILIAS\Data\URI;
26 
28 {
29  private bool $unlocked = false;
30  private ?URI $uri = null;
34  private array $permissions = [];
35 
36  public function __construct(
37  private Capabilities $capability,
38  Permissions ... $permissions
39  ) {
40  $this->permissions = $permissions;
41  }
42 
43  public function withUnlocked(bool $unlocked): Capability
44  {
45  $this->unlocked = $unlocked;
46  return $this;
47  }
48 
49  public function withURI(?URI $uri): Capability
50  {
51  $this->uri = $uri;
52  return $this;
53  }
54 
55  public function isUnlocked(): bool
56  {
57  return $this->unlocked;
58  }
59 
60  public function getUri(): ?URI
61  {
62  return $this->uri;
63  }
64 
65  public function getCapability(): Capabilities
66  {
67  return $this->capability;
68  }
69 
70  public function getPermissions(): array
71  {
72  return $this->permissions;
73  }
74 
75 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(private Capabilities $capability, Permissions ... $permissions)
Definition: Capability.php:36
The scope of this class is split ilias-conform URI&#39;s into components.
Definition: URI.php:34