ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilBuddySystemRelationStateReceiverShouldNotBeAbleToCancelRequestRule.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->isRequested()) {
30 return false;
31 }
32
33 return !$this->relation->isOwnedByActor();
34 }
35
36 public function __invoke(ilBuddySystemRelationState $state): bool
37 {
38 return !($state instanceof ilBuddySystemUnlinkedRelationState);
39 }
40}
Interface ilBuddySystemRelationState.