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

SlugConverter::setConfigurationValue()   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 2
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\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