Completed
Push — master ( 0a657c...9b2ba4 )
by André
60:49 queued 32:43
created

HiddenLocationException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getLocation() 0 4 1
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
namespace eZ\Publish\Core\MVC\Exception;
8
9
use eZ\Publish\API\Repository\Values\Content\Location;
10
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
11
12
class HiddenLocationException extends NotFoundHttpException
13
{
14
    /**
15
     * @var \eZ\Publish\API\Repository\Values\Content\Location
16
     */
17
    private $location;
18
19
    public function __construct(Location $location, $message = null, \Exception $previous = null, $code = 0)
20
    {
21
        $this->location = $location;
22
        parent::__construct($message, $previous, $code);
23
    }
24
25
    /**
26
     * @return \eZ\Publish\API\Repository\Values\Content\Location
27
     */
28
    public function getLocation()
29
    {
30
        return $this->location;
31
    }
32
}
33