1 | <?php |
||
12 | class UniNotifyService |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $logPrefix = '[Packages.Reallyli.UniNotify]'; |
||
18 | |||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $config; |
||
23 | |||
24 | /** |
||
25 | * Method description:__construct. |
||
26 | * |
||
27 | * @author reallyli <[email protected]> |
||
28 | * |
||
29 | * @since 18/6/29 |
||
30 | * |
||
31 | * @param Repository $config |
||
32 | * |
||
33 | * @return mixed |
||
|
|||
34 | * 返回值类型:string,array,object,mixed(多种,不确定的),void(无返回值) |
||
35 | */ |
||
36 | public function __construct(Repository $config) |
||
40 | |||
41 | /** |
||
42 | * Method description:send. |
||
43 | * |
||
44 | * @author reallyli <[email protected]> |
||
45 | * |
||
46 | * @since 18/6/29 |
||
47 | * |
||
48 | * @param string $message |
||
49 | * @param string $type |
||
50 | * |
||
51 | * @return mixed |
||
52 | * 返回值类型:string,array,object,mixed(多种,不确定的),void(无返回值) |
||
53 | */ |
||
54 | public function send(string $message, string $type) |
||
104 | } |
||
105 |
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.