Completed
Push — EZP-31287 ( fe8c5c...af9523 )
by
unknown
34:01
created

MatcherStub   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 30
rs 10
c 0
b 0
f 0
wmc 5
lcom 0
cbo 1

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setRequest() 0 4 1
A match() 0 4 1
A getName() 0 4 1
A getData() 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\Symfony\Component\Tests\Serializer\Stubs;
8
9
use eZ\Publish\API\Repository\Exceptions\NotImplementedException;
10
use eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest;
11
use eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher;
12
13
final class MatcherStub implements Matcher
14
{
15
    /** @var mixed */
16
    private $data;
17
18
    public function __construct($data = null)
19
    {
20
        $this->data = $data;
21
    }
22
23
    public function setRequest(SimplifiedRequest $request)
24
    {
25
        throw new NotImplementedException(__METHOD__);
26
    }
27
28
    public function match()
29
    {
30
        throw new NotImplementedException(__METHOD__);
31
    }
32
33
    public function getName()
34
    {
35
        throw new NotImplementedException(__METHOD__);
36
    }
37
38
    public function getData()
39
    {
40
        return $this->data;
41
    }
42
}
43