public static function parse($message) { $obj = new self(); $obj->text(Lou::trans_html($message->text())); $obj->screen_name($message->user()->screen_name()); $obj->profile_image_url($message->user()->profile_image_url()); $obj->created_at($message->created_at()); if ($message instanceof WassrMessage) { $obj->type("wassr"); } else { if ($message instanceof TwitterMessage) { $obj->type("twitter"); } } return $obj; }