| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | interface ITchatBot |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * To know if the bot should be triggered |
||
| 14 | * |
||
| 15 | * @param string $userMessage |
||
| 16 | * Message of the user |
||
| 17 | * @param string $userName |
||
| 18 | * Name of the user who speak to the bot |
||
| 19 | * @param long|\DateTime|string $dateTime |
||
| 20 | * Date when the message had been posted. Unix timestamp or \DateTime or string representing \DateTime are accepted. Current date by default. |
||
| 21 | * @return boolean |
||
| 22 | */ |
||
| 23 | public function isTriggered($userMessage, $userName = '', $dateTime = 0); |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Generate to the user sentence |
||
| 27 | * |
||
| 28 | * @param string $userMessage |
||
| 29 | * Message of the user |
||
| 30 | * @param string $userName |
||
| 31 | * Name of the user who speak to the bot |
||
| 32 | * @param long|\DateTime|string $dateTime |
||
| 33 | * Date when the message had been posted. Unix timestamp or \DateTime or string representing \DateTime are accepted. Current date by default. |
||
| 34 | * @return array($botName, $botMessage) |
||
|
|
|||
| 35 | */ |
||
| 36 | public function generateAnswer($userMessage, $userName = '', $dateTime = 0); |
||
| 37 | } |
||
| 38 | |||
| 41 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.