GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

SmsapiMmsMessage   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 1
cbo 2
dl 0
loc 26
ccs 8
cts 8
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A subject() 0 7 1
A smil() 0 7 1
1
<?php
2
3
namespace NotificationChannels\Smsapi;
4
5
use NotificationChannels\Smsapi\Exceptions\ExceptionFactory;
6
7
class SmsapiMmsMessage extends SmsapiMessage
8
{
9
    /**
10
     * @param  string $subject
11
     * @return self
12
     */
13 5
    public function subject($subject)
14
    {
15 5
        ExceptionFactory::assertArgumentType(1, __METHOD__, 'string', $subject);
16 1
        $this->data['subject'] = $subject;
17
18 1
        return $this;
19
    }
20
21
    /**
22
     * @param  string $smil
23
     * @return self
24
     */
25 5
    public function smil($smil)
26
    {
27 5
        ExceptionFactory::assertArgumentType(1, __METHOD__, 'string', $smil);
28 1
        $this->data['smil'] = $smil;
29
30 1
        return $this;
31
    }
32
}
33