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.
Completed
Push — master ( 3df939...d640e4 )
by Mateusz
01:51
created

SmsapiMmsMessage::subject()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
crap 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