Browse Source
fix(CI): Add stub for circles events
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/10754/head
Joas Schilling
2 years ago
No known key found for this signature in database
GPG Key ID: C400AAF20C1BB6FC
2 changed files with
28 additions and
0 deletions
-
psalm.xml
-
tests/stubs/oca_circles.php
|
|
|
@ -89,6 +89,7 @@ |
|
|
|
<file name="tests/stubs/oc_comments_manager.php" /> |
|
|
|
<file name="tests/stubs/oc_core_command_base.php" /> |
|
|
|
<file name="tests/stubs/oc_hooks_emitter.php" /> |
|
|
|
<file name="tests/stubs/oca_circles.php" /> |
|
|
|
<file name="tests/stubs/GuzzleHttp_Exception_ClientException.php" /> |
|
|
|
<file name="tests/stubs/GuzzleHttp_Exception_ConnectException.php" /> |
|
|
|
<file name="tests/stubs/GuzzleHttp_Exception_ServerException.php" /> |
|
|
|
|
|
|
|
@ -0,0 +1,27 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
namespace OCA\Circles\Events { |
|
|
|
|
|
|
|
use OCA\Circles\Model\Circle; |
|
|
|
use OCA\Circles\Model\Member; |
|
|
|
use OCP\EventDispatcher\Event; |
|
|
|
|
|
|
|
class AddingCircleMemberEvent extends Event { |
|
|
|
public function getCircle(): Circle { |
|
|
|
} |
|
|
|
public function getMember(): Member { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
class CircleDestroyedEvent extends Event { |
|
|
|
public function getCircle(): Circle { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
class RemovingCircleMemberEvent extends Event { |
|
|
|
public function getCircle(): Circle { |
|
|
|
} |
|
|
|
public function getMember(): Member { |
|
|
|
} |
|
|
|
} |
|
|
|
} |