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.

Binary::setFormat()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
namespace HtImgModule\Binary;
3
4
class Binary implements BinaryInterface
5
{
6
    /**
7
     * @var string
8
     */
9
    protected $content;
10
11
    /**
12
     * @var string
13
     */
14
    protected $mimeType;
15
16
    /**
17
     * @var string
18
     */
19
    protected $format;
20
21
    /**
22
     * Constructor
23
     *
24
     * @param string      $content
25
     * @param string      $mimeType
26
     * @param string|null $format
27
     */
28 6
    public function __construct($content, $mimeType, $format = null)
29
    {
30 6
        $this->content  = $content;
31 6
        $this->mimeType = $mimeType;
32 6
        $this->format   = $format;
33 6
    }
34
35
    /**
36
     * {@inheritDoc}
37
     */
38 3
    public function getContent()
39
    {
40 3
        return $this->content;
41
    }
42
43
    /**
44
     * {@inheritDoc}
45
     */
46 5
    public function getMimeType()
47
    {
48 5
        return $this->mimeType;
49
    }
50
51
    /**
52
     * {@inheritDoc}
53
     */
54 3
    public function setFormat($format)
55
    {
56 3
        $this->format = $format;
57 3
    }
58
59
    /**
60
     * {@inheritDoc}
61
     */
62 4
    public function getFormat()
63
    {
64 4
        return $this->format;
65
    }
66
}
67