Code Duplication    Length = 36-36 lines in 2 locations

lib/Events/RemovingCircleMemberEvent.php 1 location

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

lib/Events/RequestingCircleMemberEvent.php 1 location

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