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

BucketBootstrapCommandFactory   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\Commands;
15
16
use Interop\Container\ContainerInterface;
17
use SteamScore\Api\Console\Commands\BucketBootstrapCommand;
18
use SteamScore\Api\Domain\Interfaces\BucketManagerInterface;
19
20
final class BucketBootstrapCommandFactory
21
{
22
    /**
23
     * Creates an instance of `SteamScore\Api\Console\Commands\BucketBootstrapCommand`.
24
     *
25
     * @param ContainerInterface $container
26
     *
27
     * @return BucketBootstrapCommand
28
     */
29
    public function __invoke(ContainerInterface $container): BucketBootstrapCommand
30
    {
31
        return new BucketBootstrapCommand($container->get(BucketManagerInterface::class));
32
    }
33
}
34