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 — develop ( 08d15f...830558 )
by Tom Van
32s
created

Exif::getMake()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Exif: A container class for EXIF data
4
 *
5
 * @link        http://github.com/PHPExif/php-exif-common for the canonical source repository
6
 * @copyright   Copyright (c) 2016 Tom Van Herreweghe <[email protected]>
7
 * @license     http://github.com/PHPExif/php-exif-common/blob/master/LICENSE MIT License
8
 * @category    PHPExif
9
 * @package     Common
10
 */
11
12
namespace PHPExif\Common\Data;
13
14
use PHPExif\Common\Data\ValueObject\Exif\Aperture;
15
use PHPExif\Common\Data\ValueObject\Exif\Filename;
16
use PHPExif\Common\Data\ValueObject\Exif\Filesize;
17
use PHPExif\Common\Data\ValueObject\Exif\Make;
18
use PHPExif\Common\Data\ValueObject\Exif\MimeType;
19
20
/**
21
 * Exif class
22
 *
23
 * Container for EXIF data
24
 *
25
 * @category    PHPExif
26
 * @package     Common
27
 */
28
final class Exif implements ExifInterface
29
{
30
    /**
31
     * @var Aperture
32
     */
33
    private $aperture;
34
35
    /**
36
     * @var Filename
37
     */
38
    private $filename;
39
40
    /**
41
     * @var Filesize
42
     */
43
    private $filesize;
44
45
    /**
46
     * @var Make
47
     */
48
    private $make;
49
50
    /**
51
     * @var MimeType
52
     */
53
    private $mimeType;
54
55
    /**
56
     * {@inheritDoc}
57
     */
58
    public function getAperture()
59
    {
60
        return $this->aperture;
61
    }
62
63
    /**
64
     * {@inheritDoc}
65
     */
66
    public function withAperture(Aperture $aperture)
67
    {
68
        $new = clone $this;
69
        $new->aperture = $aperture;
70
71
        return $new;
72
    }
73
74
    /**
75
     * {@inheritDoc}
76
     */
77
    public function getMimeType()
78
    {
79
        return $this->mimeType;
80
    }
81
82
    /**
83
     * {@inheritDoc}
84
     */
85
    public function withMimeType(MimeType $mimeType)
86
    {
87
        $new = clone $this;
88
        $new->mimeType = $mimeType;
89
90
        return $new;
91
    }
92
93
    /**
94
     * {@inheritDoc}
95
     */
96
    public function getFilename()
97
    {
98
        return $this->filename;
99
    }
100
101
    /**
102
     * {@inheritDoc}
103
     */
104
    public function withFilename(Filename $filename)
105
    {
106
        $new = clone $this;
107
        $new->filename = $filename;
108
109
        return $new;
110
    }
111
112
    /**
113
     * {@inheritDoc}
114
     */
115
    public function getFilesize()
116
    {
117
        return $this->filesize;
118
    }
119
120
    /**
121
     * {@inheritDoc}
122
     */
123
    public function withFilesize(Filesize $filesize)
124
    {
125
        $new = clone $this;
126
        $new->filesize = $filesize;
127
128
        return $new;
129
    }
130
131
    /**
132
     * {@inheritDoc}
133
     */
134
    public function getMake()
135
    {
136
        return $this->make;
137
    }
138
139
    /**
140
     * {@inheritDoc}
141
     */
142
    public function withMake(Make $make)
143
    {
144
        $new = clone $this;
145
        $new->make = $make;
146
147
        return $new;
148
    }
149
}
150