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.

MapperAccessorTrait   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 27
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMapper() 0 8 2
A setMapper() 0 4 1
1
<?php
2
/**
3
 * Accessor & Mutator for Mapper
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\Mapper;
13
14
use PHPExif\Common\Adapter\MapperInterface;
15
use PHPExif\Common\Exception\Mapper\NoMapperSetException;
16
17
/**
18
 * MapperAccessorTrait
19
 *
20
 * @category    PHPExif
21
 * @package     Common
22
 */
23
trait MapperAccessorTrait
24
{
25
    /**
26
     * @var MapperInterface
27
     */
28
    private $mapper;
29
30
    /**
31
     * {@inheritDoc}
32
     */
33
    public function getMapper()
34
    {
35
        if (null !== $this->mapper) {
36
            return $this->mapper;
37
        }
38
39
        throw new NoMapperSetException;
40
    }
41
42
    /**
43
     * {@inheritDoc}
44
     */
45
    public function setMapper(MapperInterface $mapper)
46
    {
47
        $this->mapper = $mapper;
48
    }
49
}
50