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

MatcherStub::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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