Issues (11)

src/Contracts/SMSContract.php (2 issues)

1
<?php
2
3
namespace CraftedSystems\LaravelSMS\Contracts;
4
5
use Illuminate\Http\Request;
0 ignored issues
show
The type Illuminate\Http\Request was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
interface SMSContract
8
{
9
    /**
10
     * Construct the class with the relevant settings.
11
     *
12
     * @param $settings object
13
     */
14
    public function __construct($settings);
15
16
    /**
17
     * @param $recipient
18
     * @param $message
19
     * @param null $params
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $params is correct as it would always require null to be passed?
Loading history...
20
     *
21
     * @return mixed
22
     */
23
    public function send(string $recipient, string $message, $params = null);
24
25
    /**
26
     * @return mixed
27
     */
28
    public function getBalance();
29
30
    /**
31
     * define when the a message is successfully sent.
32
     *
33
     * @return bool
34
     */
35
    public function is_successful();
36
37
    /**
38
     * the message ID as received on the response.
39
     *
40
     * @return mixed
41
     */
42
    public function getMessageID();
43
44
    /**
45
     * @param Request $request
46
     *
47
     * @return object
48
     */
49
    public function getDeliveryReportS(Request $request);
50
}
51