|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
| 6 | + <meta name="mobile-web-app-capable" content="yes"> |
| 7 | + <meta name="apple-mobile-web-app-capable" content="yes"> |
| 8 | + |
| 9 | + <link rel="stylesheet" href="resources/bootstrap.min.css"> |
| 10 | + <link rel="stylesheet" href="resources/style.css"> |
| 11 | + |
| 12 | + <title> |
| 13 | + Source file |
| 14 | + </title> |
| 15 | + </head> |
| 16 | + |
| 17 | + <body> |
| 18 | +<div id="navigation"> |
| 19 | + <div class="container"> |
| 20 | + <div class="row"> |
| 21 | + <div class="col-md-12"> |
| 22 | + <nav class="navbar"> |
| 23 | + <ul class="nav navbar-nav"> |
| 24 | + <li> |
| 25 | + <a href="index.html"> |
| 26 | + Overview |
| 27 | + </a> |
| 28 | + </li> |
| 29 | + |
| 30 | + <li> |
| 31 | + <a href="classes.html">Classes</a> |
| 32 | + </li> |
| 33 | + |
| 34 | + <li> |
| 35 | + <a href="interfaces.html">Interfaces</a> |
| 36 | + </li> |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + <li> |
| 41 | + <a href="exceptions.html">Exceptions</a> |
| 42 | + </li> |
| 43 | + |
| 44 | + </ul> |
| 45 | + |
| 46 | + <form id="search" class="pull-right"> |
| 47 | + <input type="text" name="q" class="form-control text" placeholder="Search class, function or namespace" autofocus> |
| 48 | + </form> |
| 49 | + </nav> |
| 50 | + </div> |
| 51 | + </div> |
| 52 | + </div> |
| 53 | +</div> |
| 54 | + |
| 55 | + <div class="container"> |
| 56 | + <div class="row"> |
| 57 | + <div class="col-md-12"> |
| 58 | + <div id="source"> |
| 59 | + <pre class="numbers"><code><span id="1" class="l"><a href="#1"> 1: </a></span><span id="2" class="l"><a href="#2"> 2: </a></span><span id="3" class="l"><a href="#3"> 3: </a></span></span><span id="4" class="l"><a href="#4"> 4: </a></span></span><span id="5" class="l"><a href="#5"> 5: </a></span></span><span id="6" class="l"><a href="#6"> 6: </a></span></span><span id="7" class="l"><a href="#7"> 7: </a></span></span><span id="8" class="l"><a href="#8"> 8: </a></span></span><span id="9" class="l"><a href="#9"> 9: </a></span></span><span id="10" class="l"><a href="#10">10: </a></span></span><span id="11" class="l"><a href="#11">11: </a></span></span><span id="12" class="l"><a href="#12">12: </a></span></span><span id="13" class="l"><a href="#13">13: </a></span></span><span id="14" class="l"><a href="#14">14: </a></span></span><span id="15" class="l"><a href="#15">15: </a></span></span><span id="16" class="l"><a href="#16">16: </a></span></span><span id="17" class="l"><a href="#17">17: </a></span><span id="18" class="l"><a href="#18">18: </a></span><span id="19" class="l"><a href="#19">19: </a></span><span id="20" class="l"><a href="#20">20: </a></span><span id="21" class="l"><a href="#21">21: </a></span><span id="22" class="l"><a href="#22">22: </a></span><span id="23" class="l"><a href="#23">23: </a></span></span><span id="24" class="l"><a href="#24">24: </a></span></span><span id="25" class="l"><a href="#25">25: </a></span></span><span id="26" class="l"><a href="#26">26: </a></span></span><span id="27" class="l"><a href="#27">27: </a></span><span id="28" class="l"><a href="#28">28: </a></span><span id="29" class="l"><a href="#29">29: </a></span><span id="30" class="l"><a href="#30">30: </a></span><span id="31" class="l"><a href="#31">31: </a></span><span id="32" class="l"><a href="#32">32: </a></span><span id="33" class="l"><a href="#33">33: </a></span></span><span id="34" class="l"><a href="#34">34: </a></span></span><span id="35" class="l"><a href="#35">35: </a></span></span><span id="36" class="l"><a href="#36">36: </a></span></span><span id="37" class="l"><a href="#37">37: </a></span><span id="38" class="l"><a href="#38">38: </a></span><span id="39" class="l"><a href="#39">39: </a></span><span id="40" class="l"><a href="#40">40: </a></span><span id="41" class="l"><a href="#41">41: </a></span><span id="42" class="l"><a href="#42">42: </a></span><span id="43" class="l"><a href="#43">43: </a></span></span><span id="44" class="l"><a href="#44">44: </a></span></span><span id="45" class="l"><a href="#45">45: </a></span></span><span id="46" class="l"><a href="#46">46: </a></span></span><span id="47" class="l"><a href="#47">47: </a></span><span id="48" class="l"><a href="#48">48: </a></span><span id="49" class="l"><a href="#49">49: </a></span><span id="50" class="l"><a href="#50">50: </a></span><span id="51" class="l"><a href="#51">51: </a></span><span id="52" class="l"><a href="#52">52: </a></span><span id="53" class="l"><a href="#53">53: </a></span></code></pre> |
| 60 | + <pre class="code"><code><span class="l" id="line-1"><span class="xlang"><?php</span> |
| 61 | +</span><span class="l" id="line-2"> |
| 62 | +</span><span class="l" id="line-3"><span class="php-comment">/** |
| 63 | +</span></span><span class="l" id="line-4"><span class="php-comment"> * Copyright 2018 LINE Corporation |
| 64 | +</span></span><span class="l" id="line-5"><span class="php-comment"> * |
| 65 | +</span></span><span class="l" id="line-6"><span class="php-comment"> * LINE Corporation licenses this file to you under the Apache License, |
| 66 | +</span></span><span class="l" id="line-7"><span class="php-comment"> * version 2.0 (the "License"); you may not use this file except in compliance |
| 67 | +</span></span><span class="l" id="line-8"><span class="php-comment"> * with the License. You may obtain a copy of the License at: |
| 68 | +</span></span><span class="l" id="line-9"><span class="php-comment"> * |
| 69 | +</span></span><span class="l" id="line-10"><span class="php-comment"> * https://www.apache.org/licenses/LICENSE-2.0 |
| 70 | +</span></span><span class="l" id="line-11"><span class="php-comment"> * |
| 71 | +</span></span><span class="l" id="line-12"><span class="php-comment"> * Unless required by applicable law or agreed to in writing, software |
| 72 | +</span></span><span class="l" id="line-13"><span class="php-comment"> * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 73 | +</span></span><span class="l" id="line-14"><span class="php-comment"> * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 74 | +</span></span><span class="l" id="line-15"><span class="php-comment"> * License for the specific language governing permissions and limitations |
| 75 | +</span></span><span class="l" id="line-16"><span class="php-comment"> * under the License. |
| 76 | +</span></span><span class="l" id="line-17"><span class="php-comment"> */</span> |
| 77 | +</span><span class="l" id="line-18"> |
| 78 | +</span><span class="l" id="line-19"><span class="php-keyword1">namespace</span> LINE\LINEBot\MessageBuilder; |
| 79 | +</span><span class="l" id="line-20"> |
| 80 | +</span><span class="l" id="line-21"><span class="php-keyword1">use</span> LINE\LINEBot\MessageBuilder; |
| 81 | +</span><span class="l" id="line-22"> |
| 82 | +</span><span class="l" id="line-23"><span class="php-comment">/** |
| 83 | +</span></span><span class="l" id="line-24"><span class="php-comment"> * A builder class for raw message. |
| 84 | +</span></span><span class="l" id="line-25"><span class="php-comment"> * |
| 85 | +</span></span><span class="l" id="line-26"><span class="php-comment"> * @package LINE\LINEBot\MessageBuilder |
| 86 | +</span></span><span class="l" id="line-27"><span class="php-comment"> */</span> |
| 87 | +</span><span class="l" id="line-28"><span class="php-keyword1">class</span> RawMessageBuilder <span class="php-keyword1">implements</span> MessageBuilder |
| 88 | +</span><span class="l" id="line-29">{ |
| 89 | +</span><span class="l" id="line-30"> <span class="php-comment">/** @var array */</span> |
| 90 | +</span><span class="l" id="line-31"> <span class="php-keyword1">private</span> <span class="php-var">$message</span> = []; |
| 91 | +</span><span class="l" id="line-32"> |
| 92 | +</span><span class="l" id="line-33"> <span class="php-comment">/** |
| 93 | +</span></span><span class="l" id="line-34"><span class="php-comment"> * RawMessageBuilder constructor. |
| 94 | +</span></span><span class="l" id="line-35"><span class="php-comment"> * |
| 95 | +</span></span><span class="l" id="line-36"><span class="php-comment"> * @param array $message |
| 96 | +</span></span><span class="l" id="line-37"><span class="php-comment"> */</span> |
| 97 | +</span><span class="l" id="line-38"> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> __construct(<span class="php-keyword1">array</span> <span class="php-var">$message</span>) |
| 98 | +</span><span class="l" id="line-39"> { |
| 99 | +</span><span class="l" id="line-40"> <span class="php-var">$this</span>->message[] = <span class="php-var">$message</span>; |
| 100 | +</span><span class="l" id="line-41"> } |
| 101 | +</span><span class="l" id="line-42"> |
| 102 | +</span><span class="l" id="line-43"> <span class="php-comment">/** |
| 103 | +</span></span><span class="l" id="line-44"><span class="php-comment"> * Returns raw message. |
| 104 | +</span></span><span class="l" id="line-45"><span class="php-comment"> * |
| 105 | +</span></span><span class="l" id="line-46"><span class="php-comment"> * @return array Built message structure. |
| 106 | +</span></span><span class="l" id="line-47"><span class="php-comment"> */</span> |
| 107 | +</span><span class="l" id="line-48"> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> buildMessage() |
| 108 | +</span><span class="l" id="line-49"> { |
| 109 | +</span><span class="l" id="line-50"> <span class="php-keyword1">return</span> <span class="php-var">$this</span>->message; |
| 110 | +</span><span class="l" id="line-51"> } |
| 111 | +</span><span class="l" id="line-52">} |
| 112 | +</span><span class="l" id="line-53"></span><br></code></pre> |
| 113 | + </div> |
| 114 | + <div id="footer"> |
| 115 | + Generated by <a href="https://github.com/apigen/apigen">ApiGen</a> |
| 116 | + </div> |
| 117 | + </div> |
| 118 | + </div> |
| 119 | + </div> |
| 120 | + |
| 121 | + <script src="resources/jquery-3.2.1.min.js"></script> |
| 122 | + <script src="resources/jquery-ui-1.12.1.min.js"></script> |
| 123 | + |
| 124 | + <script src="elementlist.js"></script> |
| 125 | + <script src="resources/main.js"></script> |
| 126 | + </body> |
| 127 | +</html> |
| 128 | + |
| 129 | + |
0 commit comments