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 ( f425f6...08d15f )
by Tom Van
22s
created

Exif::withFilesize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
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\MimeType;
18
19
/**
20
 * Exif class
21
 *
22
 * Container for EXIF data
23
 *
24
 * @category    PHPExif
25
 * @package     Common
26
 */
27
final class Exif implements ExifInterface
28
{
29
    /**
30
     * @var Aperture
31
     */
32
    private $aperture;
33
34
    /**
35
     * @var Filename
36
     */
37
    private $filename;
38
39
    /**
40
     * @var Filesize
41
     */
42
    private $filesize;
43
44
    /**
45
     * @var MimeType
46
     */
47
    private $mimeType;
48
49
    /**
50
     * {@inheritDoc}
51
     */
52
    public function getAperture()
53
    {
54
        return $this->aperture;
55
    }
56
57
    /**
58
     * {@inheritDoc}
59
     */
60
    public function withAperture(Aperture $aperture)
61
    {
62
        $new = clone $this;
63
        $new->aperture = $aperture;
64
65
        return $new;
66
    }
67
68
    /**
69
     * {@inheritDoc}
70
     */
71
    public function getMimeType()
72
    {
73
        return $this->mimeType;
74
    }
75
76
    /**
77
     * {@inheritDoc}
78
     */
79
    public function withMimeType(MimeType $mimeType)
80
    {
81
        $new = clone $this;
82
        $new->mimeType = $mimeType;
83
84
        return $new;
85
    }
86
87
    /**
88
     * {@inheritDoc}
89
     */
90
    public function getFilename()
91
    {
92
        return $this->filename;
93
    }
94
95
    /**
96
     * {@inheritDoc}
97
     */
98
    public function withFilename(Filename $filename)
99
    {
100
        $new = clone $this;
101
        $new->filename = $filename;
102
103
        return $new;
104
    }
105
106
    /**
107
     * {@inheritDoc}
108
     */
109
    public function getFilesize()
110
    {
111
        return $this->filesize;
112
    }
113
114
    /**
115
     * {@inheritDoc}
116
     */
117
    public function withFilesize(Filesize $filesize)
118
    {
119
        $new = clone $this;
120
        $new->filesize = $filesize;
121
122
        return $new;
123
    }
124
}
125