| @@ 50-86 (lines=37) @@ | ||
| 47 | * |
|
| 48 | * @package OCA\Circles\Events |
|
| 49 | */ |
|
| 50 | class CircleMemberAddedEvent extends CircleResultGenericEvent { |
|
| 51 | ||
| 52 | ||
| 53 | /** @var int */ |
|
| 54 | private $type = 0; |
|
| 55 | ||
| 56 | ||
| 57 | /** |
|
| 58 | * CircleMemberAddedEvent constructor. |
|
| 59 | * |
|
| 60 | * @param FederatedEvent $federatedEvent |
|
| 61 | * @param array $results |
|
| 62 | */ |
|
| 63 | public function __construct(FederatedEvent $federatedEvent, array $results) { |
|
| 64 | parent::__construct($federatedEvent, $results); |
|
| 65 | } |
|
| 66 | ||
| 67 | ||
| 68 | /** |
|
| 69 | * @param int $type |
|
| 70 | * |
|
| 71 | * @return $this |
|
| 72 | */ |
|
| 73 | public function setType(int $type): self { |
|
| 74 | $this->type = $type; |
|
| 75 | ||
| 76 | return $this; |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * @return int |
|
| 81 | */ |
|
| 82 | public function getType(): int { |
|
| 83 | return $this->type; |
|
| 84 | } |
|
| 85 | ||
| 86 | } |
|
| 87 | ||
| 88 | ||
| @@ 50-86 (lines=37) @@ | ||
| 47 | * |
|
| 48 | * @package OCA\Circles\Events |
|
| 49 | */ |
|
| 50 | class CircleMemberRemovedEvent extends CircleResultGenericEvent { |
|
| 51 | ||
| 52 | ||
| 53 | /** @var int */ |
|
| 54 | private $type = 0; |
|
| 55 | ||
| 56 | ||
| 57 | /** |
|
| 58 | * CircleMemberRemovedEvent constructor. |
|
| 59 | * |
|
| 60 | * @param FederatedEvent $federatedEvent |
|
| 61 | * @param array $results |
|
| 62 | */ |
|
| 63 | public function __construct(FederatedEvent $federatedEvent, array $results) { |
|
| 64 | parent::__construct($federatedEvent, $results); |
|
| 65 | } |
|
| 66 | ||
| 67 | ||
| 68 | /** |
|
| 69 | * @param int $type |
|
| 70 | * |
|
| 71 | * @return $this |
|
| 72 | */ |
|
| 73 | public function setType(int $type): self { |
|
| 74 | $this->type = $type; |
|
| 75 | ||
| 76 | return $this; |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * @return int |
|
| 81 | */ |
|
| 82 | public function getType(): int { |
|
| 83 | return $this->type; |
|
| 84 | } |
|
| 85 | ||
| 86 | } |
|
| 87 | ||
| 88 | ||
| @@ 50-86 (lines=37) @@ | ||
| 47 | * |
|
| 48 | * @package OCA\Circles\Events |
|
| 49 | */ |
|
| 50 | class CircleMemberRequestedEvent extends CircleResultGenericEvent { |
|
| 51 | ||
| 52 | ||
| 53 | /** @var int */ |
|
| 54 | private $type = 0; |
|
| 55 | ||
| 56 | ||
| 57 | /** |
|
| 58 | * CircleMemberRequestedEvent constructor. |
|
| 59 | * |
|
| 60 | * @param FederatedEvent $federatedEvent |
|
| 61 | * @param array $results |
|
| 62 | */ |
|
| 63 | public function __construct(FederatedEvent $federatedEvent, array $results) { |
|
| 64 | parent::__construct($federatedEvent, $results); |
|
| 65 | } |
|
| 66 | ||
| 67 | ||
| 68 | /** |
|
| 69 | * @param int $type |
|
| 70 | * |
|
| 71 | * @return $this |
|
| 72 | */ |
|
| 73 | public function setType(int $type): self { |
|
| 74 | $this->type = $type; |
|
| 75 | ||
| 76 | return $this; |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * @return int |
|
| 81 | */ |
|
| 82 | public function getType(): int { |
|
| 83 | return $this->type; |
|
| 84 | } |
|
| 85 | ||
| 86 | } |
|
| 87 | ||
| 88 | ||