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
03:01
created

Exif   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 26
c 0
b 0
f 0
wmc 2
lcom 1
cbo 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getAperture() 0 4 1
A withAperture() 0 7 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
16
/**
17
 * Exif class
18
 *
19
 * Container for EXIF data
20
 *
21
 * @category    PHPExif
22
 * @package     Common
23
 */
24
final class Exif implements ExifInterface
25
{
26
    /**
27
     * @var Aperture
28
     */
29
    private $aperture;
30
31
    /**
32
     * {@inheritDoc}
33
     */
34
    public function getAperture()
35
    {
36
        return $this->aperture;
37
    }
38
39
    /**
40
     * {@inheritDoc}
41
     */
42
    public function withAperture(Aperture $aperture)
43
    {
44
        $new = clone $this;
45
        $new->aperture = $aperture;
46
47
        return $new;
48
    }
49
}
50