summaryrefslogtreecommitdiff
path: root/src/PhpBB3Message.php
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-03-21 14:27:04 +0000
committeruckelman <uckelman@nomic.net>2010-03-21 14:27:04 +0000
commitae81cd8aa125bcbe573644d2f4ef0e1a3e2b9352 (patch)
tree689c76ff43e3cffecfb18537a4aeaaf8dcf78a7f /src/PhpBB3Message.php
parent35b7540e71e25062ec7f0cbfd1485a2517d3552a (diff)
* Separated Message tests by concrete class.
* Added PhpBB3Message class stub. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6623 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src/PhpBB3Message.php')
-rw-r--r--src/PhpBB3Message.php49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/PhpBB3Message.php b/src/PhpBB3Message.php
new file mode 100644
index 0000000..5d3cced
--- /dev/null
+++ b/src/PhpBB3Message.php
@@ -0,0 +1,49 @@
+<?php
+
+require_once(__DIR__ . '/Message.php');
+
+class PhpBB3Message implements Message {
+
+ protected $user;
+ protected $post;
+
+ public function __construct($user, $data) {
+ $this->user = $user;
+ $this->post = $post;
+ }
+
+ public function getSource() {
+ return null;
+ }
+
+ public function getPostId() {
+ return $this->post['post_id'];
+ }
+
+ public function getFrom() {
+ return '"' . $this->user->data['username'] . '" <'
+ . $this->user->data['user_email'] . '>';
+ }
+
+ public function getSubject() {
+ return $this->post['post_subject'];
+ }
+
+ public function getMessageId() {
+ return null;
+ }
+
+ public function getInReplyTo() {
+ return null;
+ }
+
+ public function getReferences() {
+ return null;
+ }
+
+ public function getBody() {
+ return null;
+ }
+}
+
+?>