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   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 63
rs 10
c 0
b 0
f 0
ccs 14
cts 14
cp 1

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getContent() 0 4 1
A getMimeType() 0 4 1
A setFormat() 0 4 1
A getFormat() 0 4 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