ILIAS  release_8 Revision v8.24
class.ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRule.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
27 public function matches(): bool
28 {
29 if (!$this->relation->isIgnored()) {
30 return false;
31 }
32
33 if (!$this->relation->isOwnedByActor()) {
34 return false;
35 }
36
37 return true;
38 }
39
40 public function __invoke(ilBuddySystemRelationState $state): bool
41 {
42 return !($state instanceof ilBuddySystemLinkedRelationState);
43 }
44}
Interface ilBuddySystemRelationState.