MmsFormat   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getText() 0 9 1
1
<?php
2
3
/*
4
 * This file is part of the 2amigos/qrcode-library project.
5
 *
6
 * (c) 2amigOS! <http://2amigos.us/>
7
 *
8
 * For the full copyright and license information, please view
9
 * the LICENSE file that was distributed with this source code.
10
 */
11
12
namespace Da\QrCode\Format;
13
14
/**
15
 * Mms formats a string to properly create a Sms QrCode
16
 *
17
* @author Antonio Ramirez <[email protected]>
18
 * @link https://www.2amigos.us/
19
 * @package Da\QrCode\Format
20
 */
21
class MmsFormat extends SmsFormat
22
{
23
    /**
24
     * @var string
25
     */
26
    public $msg;
27
28
    /**
29
     * @return string
30
     * @codeCoverageIgnore
31
     */
32
    public function getText(): string
33
    {
34
        $data = [];
35
        $data[] = 'MMSTO';
36
        $data[] = $this->phone;
37
        $data[] = $this->msg;
38
39
        return implode(':', array_filter($data));
40
    }
41
}
42