1 | <?php |
||
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 |
||
|
|||
26 | */ |
||
27 | public function __construct($message = '') |
||
31 | |||
32 | //------------------------------------------------------------------------- |
||
33 | |||
34 | /** |
||
35 | * Set the message content. |
||
36 | * |
||
37 | * @param string $message |
||
38 | * @return self |
||
39 | */ |
||
40 | public function message($message) |
||
46 | |||
47 | //------------------------------------------------------------------------- |
||
48 | } |
||
49 |
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.