Line ending
This commit is contained in:
5
.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
5
.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<component name="ProjectCodeStyleConfiguration">
|
||||||
|
<state>
|
||||||
|
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
|
||||||
|
</state>
|
||||||
|
</component>
|
||||||
@@ -1,19 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'MessageHandler.php';
|
require_once 'MessageHandler.php';
|
||||||
|
|
||||||
class TestHandler implements MessageHandler
|
class TestHandler implements MessageHandler
|
||||||
{
|
{
|
||||||
|
|
||||||
public function CanHandle($room_id, $msgid, $message): bool
|
public function CanHandle($room_id, $msgid, $message): bool
|
||||||
{
|
{
|
||||||
// TODO: Implement canHandle() method.
|
// TODO: Implement canHandle() method.
|
||||||
return $msgid == 0;
|
return $msgid == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Handle($room_id, $msgid, $message): string
|
public function Handle($room_id, $msgid, $message): string
|
||||||
{
|
{
|
||||||
// TODO: Implement handle() method.
|
// TODO: Implement handle() method.
|
||||||
return "uwu";
|
return "uwu";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
interface MessageHandler
|
interface MessageHandler
|
||||||
{
|
{
|
||||||
public function CanHandle($room_id, $msgid, $message): bool;
|
public function CanHandle($room_id, $msgid, $message): bool;
|
||||||
public function Handle($room_id, $msgid, $message): string;
|
public function Handle($room_id, $msgid, $message): string;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user