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 ( 59528d...1d588e )
by Tom Van
30s
created

Exif::withMimeType()   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\MimeType;
16
17
/**
18
 * Exif class
19
 *
20
 * Container for EXIF data
21
 *
22
 * @category    PHPExif
23
 * @package     Common
24
 */
25
final class Exif implements ExifInterface
26
{
27
    /**
28
     * @var Aperture
29
     */
30
    private $aperture;
31
32
    /**
33
     * @var MimeType
34
     */
35
    private $mimeType;
36
37
    /**
38
     * {@inheritDoc}
39
     */
40
    public function getAperture()
41
    {
42
        return $this->aperture;
43
    }
44
45
    /**
46
     * {@inheritDoc}
47
     */
48
    public function withAperture(Aperture $aperture)
49
    {
50
        $new = clone $this;
51
        $new->aperture = $aperture;
52
53
        return $new;
54
    }
55
56
    /**
57
     * {@inheritDoc}
58
     */
59
    public function getMimeType()
60
    {
61
        return $this->mimeType;
62
    }
63
64
    /**
65
     * {@inheritDoc}
66
     */
67
    public function withMimeType(MimeType $mimeType)
68
    {
69
        $new = clone $this;
70
        $new->mimeType = $mimeType;
71
72
        return $new;
73
    }
74
}
75