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
Pull Request — develop (#12)
by Tom Van
02:43
created

Metadata::withExif()   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
c 0
b 0
f 0
rs 9.4285
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
/**
15
 * Metadata class
16
 *
17
 * Container for Metadata of an image
18
 *
19
 * @category    PHPExif
20
 * @package     Common
21
 */
22
final class Metadata implements MetadataInterface
23
{
24
    /**
25
     * @var ExifInterface
26
     */
27
    private $exif;
28
29
    /**
30
     * @var IptcInterface
31
     */
32
    private $iptc;
33
34
    /**
35
     * Constructor
36
     *
37
     * @param ExifInterface $exif
38
     * @param IptcInterface $iptc
39
     */
40
    public function __construct(ExifInterface $exif, IptcInterface $iptc)
41
    {
42
        $this->exif = $exif;
43
        $this->iptc = $iptc;
44
    }
45
46
    /**
47
     * {@inheritDoc}
48
     */
49
    public function withExif(ExifInterface $exif)
50
    {
51
        $new = clone $this;
52
        $new->exif = $exif;
53
54
        return $new;
55
    }
56
57
    /**
58
     * {@inheritDoc}
59
     */
60
    public function withIptc(IptcInterface $iptc)
61
    {
62
        $new = clone $this;
63
        $new->iptc = $iptc;
64
65
        return $new;
66
    }
67
68
    /**
69
     * {@inheritDoc}
70
     */
71
    public function getExif()
72
    {
73
        return $this->exif;
74
    }
75
76
    /**
77
     * {@inheritDoc}
78
     */
79
    public function getIptc()
80
    {
81
        return $this->iptc;
82
    }
83
}
84