Completed
Push — master ( fbc42e...4f026e )
by Jonas
21:13
created

VersionActionFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
/*
5
 * This file is part of SteamScore.
6
 *
7
 * (c) SteamScore <[email protected]>
8
 *
9
 * This Source Code Form is subject to the terms of the Mozilla Public
10
 * License, v. 2.0. If a copy of the MPL was not distributed with this
11
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
12
 */
13
14
namespace SteamScore\Api\Factory\Actions;
15
16
use Interop\Container\ContainerInterface;
17
use SteamScore\Api\Http\Actions\VersionAction;
18
19
final class VersionActionFactory
20
{
21
    /**
22
     * Creates an instance of `SteamScore\Api\Http\Actions\VersionAction`.
23
     *
24
     * @param ContainerInterface $container
25
     *
26
     * @return VersionAction
27
     */
28
    public function __invoke(ContainerInterface $container): VersionAction
29
    {
30
        return new VersionAction($container->get('config')['version']);
31
    }
32
}
33