Completed
Push — master ( 81acf3...241a18 )
by
unknown
60:32 queued 45:22
created

InMemoryVariationHandler::getVariation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 4
dl 0
loc 10
rs 9.9332
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
declare(strict_types=1);
8
9
namespace eZ\Publish\SPI\Tests\Variation;
10
11
use eZ\Publish\API\Repository\Values\Content\Field;
12
use eZ\Publish\API\Repository\Values\Content\VersionInfo;
13
use eZ\Publish\SPI\Variation\Values\Variation;
14
use eZ\Publish\SPI\Variation\VariationHandler;
15
16
class InMemoryVariationHandler implements VariationHandler
17
{
18
    public function getVariation(
19
        Field $field,
20
        VersionInfo $versionInfo,
21
        $variationName,
22
        array $parameters = []
23
    ) {
24
        return new Variation([
25
            'uri' => $field->value . '-in-memory-test',
26
        ]);
27
    }
28
}
29