FreeMobileMessage   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 39
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A message() 0 6 1
1
<?php
2
3
namespace Akibatech\FreeMobileSms\Notifications;
4
5
/**
6
 * Class FreeMobileMessage
7
 *
8
 * @package Akibatech\FreeMobileSms\Notifications
9
 */
10
class FreeMobileMessage
11
{
12
    /**
13
     * The message content.
14
     *
15
     * @var string
16
     */
17
    public $message;
18
19
    //-------------------------------------------------------------------------
20
21
    /**
22
     * Create a new message instance.
23
     *
24
     * @param   string $message
25
     * @return  void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
26
     */
27
    public function __construct($message = '')
28
    {
29
        $this->message = $message;
30
    }
31
32
    //-------------------------------------------------------------------------
33
34
    /**
35
     * Set the message content.
36
     *
37
     * @param   string $message
38
     * @return  self
39
     */
40
    public function message($message)
41
    {
42
        $this->message = $message;
43
44
        return $this;
45
    }
46
47
    //-------------------------------------------------------------------------
48
}
49