1: <?php
2:
3: namespace Budabot\Core;
4:
5: require_once 'CommandReply.class.php';
6:
7: class PrivateMessageCommandReply implements CommandReply {
8: private $chatBot;
9: private $sender;
10:
11: public function __construct(Budabot $chatBot, $sender) {
12: $this->chatBot = $chatBot;
13: $this->sender = $sender;
14: }
15:
16: public function reply($msg) {
17: $this->chatBot->sendTell($msg, $this->sender);
18: }
19: }
20: