diff --git a/docs/class-LINE.LINEBot.MessageBuilder.RawMessageBuilder.html b/docs/class-LINE.LINEBot.MessageBuilder.RawMessageBuilder.html new file mode 100644 index 00000000..4250d085 --- /dev/null +++ b/docs/class-LINE.LINEBot.MessageBuilder.RawMessageBuilder.html @@ -0,0 +1,214 @@ + + + + + + + + + + + + + Class LINE\LINEBot\MessageBuilder\RawMessageBuilder + + + + + + + +
+
+
+

RawMessageBuilder

+ +
+
+ A builder class for raw message. +
+
+ +
+
+ + implements + + LINE\LINEBot\MessageBuilder + + +
+
+ + + +
+ + +
+ Open source code +
+
+ + + + + + + + + + + + + + + + + + + + + +
Methods Summary
+ + public + + + + +
+ # + __construct( array $message ) + +
+ RawMessageBuilder constructor. + + + + + + + + +
+
+
+ + public + + + + +
+ # + buildMessage( ) + +
+ Returns raw message. + + + + + + + + +

Implementation of

+ +
+
+
+ + + + + + + + +
+
+
+ + + + + + + + + + diff --git a/docs/source-class-LINE.LINEBot.MessageBuilder.RawMessageBuilder.html b/docs/source-class-LINE.LINEBot.MessageBuilder.RawMessageBuilder.html new file mode 100644 index 00000000..51336069 --- /dev/null +++ b/docs/source-class-LINE.LINEBot.MessageBuilder.RawMessageBuilder.html @@ -0,0 +1,129 @@ + + + + + + + + + + + + + Source file + + + + + + +
+
+
+
+
 1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 
+
<?php
+
+/**
+ * Copyright 2018 LINE Corporation
+ *
+ * LINE Corporation licenses this file to you under the Apache License,
+ * version 2.0 (the "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at:
+ *
+ *   https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ */
+
+namespace LINE\LINEBot\MessageBuilder;
+
+use LINE\LINEBot\MessageBuilder;
+
+/**
+ * A builder class for raw message.
+ *
+ * @package LINE\LINEBot\MessageBuilder
+ */
+class RawMessageBuilder implements MessageBuilder
+{
+    /** @var array */
+    private $message = [];
+
+    /**
+     * RawMessageBuilder constructor.
+     *
+     * @param array $message
+     */
+    public function __construct(array $message)
+    {
+        $this->message[] = $message;
+    }
+
+    /**
+     * Returns raw message.
+     *
+     * @return array Built message structure.
+     */
+    public function buildMessage()
+    {
+        return $this->message;
+    }
+}
+
+
+ +
+
+
+ + + + + + + + + +