Completed
Push — master ( 0b3034...a98e2b )
by
unknown
36:06 queued 14:31
created

SlugConverter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setConfigurationValue() 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\API\Repository\Tests\Common;
8
9
use eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter as LegacySlugConverter;
10
11
/**
12
 * Overridden Slug Converter for test purposes (to make Service configuration mutable).
13
 *
14
 * @see \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter
15
 */
16
class SlugConverter extends LegacySlugConverter
17
{
18
    /**
19
     * Set service-wide configuration value.
20
     *
21
     * @param string $key
22
     * @param string $value
23
     */
24
    public function setConfigurationValue($key, $value)
25
    {
26
        $this->configuration[$key] = $value;
27
    }
28
}
29