|
56 | 56 | <div class="row"> |
57 | 57 | <div class="col-md-12"> |
58 | 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><span id="31" class="l"><a href="#31">31: </a></span></span><span id="32" class="l"><a href="#32">32: </a></span></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 id="35" class="l"><a href="#35">35: </a></span><span id="36" class="l"><a href="#36">36: </a></span><span id="37" class="l"><a href="#37">37: </a></span></span><span id="38" class="l"><a href="#38">38: </a></span></span><span id="39" class="l"><a href="#39">39: </a></span></span><span id="40" class="l"><a href="#40">40: </a></span></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 id="44" class="l"><a href="#44">44: </a></span><span id="45" class="l"><a href="#45">45: </a></span><span id="46" class="l"><a href="#46">46: </a></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><span id="51" class="l"><a href="#51">51: </a></span></span><span id="52" class="l"><a href="#52">52: </a></span></span><span id="53" class="l"><a href="#53">53: </a></span></span><span id="54" class="l"><a href="#54">54: </a></span><span id="55" class="l"><a href="#55">55: </a></span><span id="56" class="l"><a href="#56">56: </a></span><span id="57" class="l"><a href="#57">57: </a></span><span id="58" class="l"><a href="#58">58: </a></span><span id="59" class="l"><a href="#59">59: </a></span><span id="60" class="l"><a href="#60">60: </a></span></span><span id="61" class="l"><a href="#61">61: </a></span></span><span id="62" class="l"><a href="#62">62: </a></span></span><span id="63" class="l"><a href="#63">63: </a></span></span><span id="64" class="l"><a href="#64">64: </a></span><span id="65" class="l"><a href="#65">65: </a></span><span id="66" class="l"><a href="#66">66: </a></span><span id="67" class="l"><a href="#67">67: </a></span><span id="68" class="l"><a href="#68">68: </a></span><span id="69" class="l"><a href="#69">69: </a></span><span id="70" class="l"><a href="#70">70: </a></span></code></pre> |
| 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><span id="31" class="l"><a href="#31">31: </a></span></span><span id="32" class="l"><a href="#32">32: </a></span></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 id="35" class="l"><a href="#35">35: </a></span><span id="36" class="l"><a href="#36">36: </a></span><span id="37" class="l"><a href="#37">37: </a></span></span><span id="38" class="l"><a href="#38">38: </a></span></span><span id="39" class="l"><a href="#39">39: </a></span></span><span id="40" class="l"><a href="#40">40: </a></span></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 id="44" class="l"><a href="#44">44: </a></span><span id="45" class="l"><a href="#45">45: </a></span><span id="46" class="l"><a href="#46">46: </a></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><span id="53" class="l"><a href="#53">53: </a></span></span><span id="54" class="l"><a href="#54">54: </a></span></span><span id="55" class="l"><a href="#55">55: </a></span></span><span id="56" class="l"><a href="#56">56: </a></span><span id="57" class="l"><a href="#57">57: </a></span><span id="58" class="l"><a href="#58">58: </a></span><span id="59" class="l"><a href="#59">59: </a></span><span id="60" class="l"><a href="#60">60: </a></span><span id="61" class="l"><a href="#61">61: </a></span><span id="62" class="l"><a href="#62">62: </a></span></span><span id="63" class="l"><a href="#63">63: </a></span></span><span id="64" class="l"><a href="#64">64: </a></span></span><span id="65" class="l"><a href="#65">65: </a></span></span><span id="66" class="l"><a href="#66">66: </a></span><span id="67" class="l"><a href="#67">67: </a></span><span id="68" class="l"><a href="#68">68: </a></span><span id="69" class="l"><a href="#69">69: </a></span><span id="70" class="l"><a href="#70">70: </a></span><span id="71" class="l"><a href="#71">71: </a></span><span id="72" class="l"><a href="#72">72: </a></span></code></pre> |
60 | 60 | <pre class="code"><code><span class="l" id="line-1"><span class="xlang"><?php</span> |
61 | 61 | </span><span class="l" id="line-2"> |
62 | 62 | </span><span class="l" id="line-3"><span class="php-comment">/** |
|
89 | 89 | </span><span class="l" id="line-30"> <span class="php-comment">/** |
90 | 90 | </span></span><span class="l" id="line-31"><span class="php-comment"> * Emoji Info List |
91 | 91 | </span></span><span class="l" id="line-32"><span class="php-comment"> * |
92 | | -</span></span><span class="l" id="line-33"><span class="php-comment"> * @var array |
| 92 | +</span></span><span class="l" id="line-33"><span class="php-comment"> * @var array|null |
93 | 93 | </span></span><span class="l" id="line-34"><span class="php-comment"> */</span> |
94 | 94 | </span><span class="l" id="line-35"> <span class="php-keyword1">private</span> <span class="php-var">$emojis</span>; |
95 | 95 | </span><span class="l" id="line-36"> |
|
101 | 101 | </span><span class="l" id="line-42"> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> __construct(<span class="php-var">$event</span>) |
102 | 102 | </span><span class="l" id="line-43"> { |
103 | 103 | </span><span class="l" id="line-44"> parent::__construct(<span class="php-var">$event</span>); |
104 | | -</span><span class="l" id="line-45"> <span class="php-var">$this</span>->emojis = <span class="php-keyword2">array_map</span>(<span class="php-keyword1">function</span> (<span class="php-var">$emojiInfo</span>) { |
105 | | -</span><span class="l" id="line-46"> <span class="php-keyword1">return</span> <span class="php-keyword1">new</span> EmojiInfo(<span class="php-var">$emojiInfo</span>); |
106 | | -</span><span class="l" id="line-47"> }, <span class="php-var">$this</span>->message[<span class="php-quote">'emojis'</span>]); |
107 | | -</span><span class="l" id="line-48"> } |
108 | | -</span><span class="l" id="line-49"> |
109 | | -</span><span class="l" id="line-50"> <span class="php-comment">/** |
110 | | -</span></span><span class="l" id="line-51"><span class="php-comment"> * Returns text of the message. |
111 | | -</span></span><span class="l" id="line-52"><span class="php-comment"> * |
112 | | -</span></span><span class="l" id="line-53"><span class="php-comment"> * @return string |
113 | | -</span></span><span class="l" id="line-54"><span class="php-comment"> */</span> |
114 | | -</span><span class="l" id="line-55"> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <span class="php-keyword2">getText</span>() |
115 | | -</span><span class="l" id="line-56"> { |
116 | | -</span><span class="l" id="line-57"> <span class="php-keyword1">return</span> <span class="php-var">$this</span>->message[<span class="php-quote">'text'</span>]; |
117 | | -</span><span class="l" id="line-58"> } |
118 | | -</span><span class="l" id="line-59"> |
119 | | -</span><span class="l" id="line-60"> <span class="php-comment">/** |
120 | | -</span></span><span class="l" id="line-61"><span class="php-comment"> * Returns emoji info list of the messages. |
121 | | -</span></span><span class="l" id="line-62"><span class="php-comment"> * |
122 | | -</span></span><span class="l" id="line-63"><span class="php-comment"> * @return array |
123 | | -</span></span><span class="l" id="line-64"><span class="php-comment"> */</span> |
124 | | -</span><span class="l" id="line-65"> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> getEmojis() |
125 | | -</span><span class="l" id="line-66"> { |
126 | | -</span><span class="l" id="line-67"> <span class="php-keyword1">return</span> <span class="php-var">$this</span>->emojis; |
127 | | -</span><span class="l" id="line-68"> } |
128 | | -</span><span class="l" id="line-69">} |
129 | | -</span><span class="l" id="line-70"></span><br></code></pre> |
| 104 | +</span><span class="l" id="line-45"> <span class="php-keyword1">if</span> (<span class="php-keyword1">isset</span>(<span class="php-var">$this</span>->message[<span class="php-quote">'emojis'</span>])) { |
| 105 | +</span><span class="l" id="line-46"> <span class="php-var">$this</span>->emojis = <span class="php-keyword2">array_map</span>(<span class="php-keyword1">function</span> (<span class="php-var">$emojiInfo</span>) { |
| 106 | +</span><span class="l" id="line-47"> <span class="php-keyword1">return</span> <span class="php-keyword1">new</span> EmojiInfo(<span class="php-var">$emojiInfo</span>); |
| 107 | +</span><span class="l" id="line-48"> }, <span class="php-var">$this</span>->message[<span class="php-quote">'emojis'</span>]); |
| 108 | +</span><span class="l" id="line-49"> } |
| 109 | +</span><span class="l" id="line-50"> } |
| 110 | +</span><span class="l" id="line-51"> |
| 111 | +</span><span class="l" id="line-52"> <span class="php-comment">/** |
| 112 | +</span></span><span class="l" id="line-53"><span class="php-comment"> * Returns text of the message. |
| 113 | +</span></span><span class="l" id="line-54"><span class="php-comment"> * |
| 114 | +</span></span><span class="l" id="line-55"><span class="php-comment"> * @return string |
| 115 | +</span></span><span class="l" id="line-56"><span class="php-comment"> */</span> |
| 116 | +</span><span class="l" id="line-57"> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <span class="php-keyword2">getText</span>() |
| 117 | +</span><span class="l" id="line-58"> { |
| 118 | +</span><span class="l" id="line-59"> <span class="php-keyword1">return</span> <span class="php-var">$this</span>->message[<span class="php-quote">'text'</span>]; |
| 119 | +</span><span class="l" id="line-60"> } |
| 120 | +</span><span class="l" id="line-61"> |
| 121 | +</span><span class="l" id="line-62"> <span class="php-comment">/** |
| 122 | +</span></span><span class="l" id="line-63"><span class="php-comment"> * Returns emoji info list of the messages. |
| 123 | +</span></span><span class="l" id="line-64"><span class="php-comment"> * |
| 124 | +</span></span><span class="l" id="line-65"><span class="php-comment"> * @return array |
| 125 | +</span></span><span class="l" id="line-66"><span class="php-comment"> */</span> |
| 126 | +</span><span class="l" id="line-67"> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> getEmojis() |
| 127 | +</span><span class="l" id="line-68"> { |
| 128 | +</span><span class="l" id="line-69"> <span class="php-keyword1">return</span> <span class="php-var">$this</span>->emojis; |
| 129 | +</span><span class="l" id="line-70"> } |
| 130 | +</span><span class="l" id="line-71">} |
| 131 | +</span><span class="l" id="line-72"></span><br></code></pre> |
130 | 132 | </div> |
131 | 133 | <div id="footer"> |
132 | 134 | Generated by <a href="https://github.com/apigen/apigen">ApiGen</a> |
|
0 commit comments