| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 32 | class GetQuotaEvent extends Event { |
||
| 33 | /** @var IUser */ |
||
| 34 | private $user; |
||
| 35 | /** @var string|null */ |
||
| 36 | private $quota = null; |
||
| 37 | |||
| 38 | public function __construct(IUser $user) { |
||
| 39 | parent::__construct(); |
||
| 40 | $this->user = $user; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getUser(): IUser { |
||
| 44 | return $this->user; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Get the set quota as human readable string, or null if no overwrite is set |
||
| 49 | * |
||
| 50 | * @return string|null |
||
| 51 | */ |
||
| 52 | public function getQuota(): ?string { |
||
| 53 | return $this->quota; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Set the quota overwrite as human readable string |
||
| 58 | * |
||
| 59 | * @param string $quota |
||
| 60 | */ |
||
| 61 | public function setQuota(string $quota): void { |
||
| 63 | } |
||
| 64 | } |
||
| 65 |