Completed
Push — master ( aa9e77...027dae )
by Michael
36:24
created

Invokable   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 9
rs 10
1
<?php
2
declare(strict_types = 1);
3
/**
4
 * Contains class Invokable.
5
 *
6
 * PHP version 5.5
7
 *
8
 * LICENSE:
9
 * This file is part of Yet Another Php Eve Api Library also know as Yapeal
10
 * which can be used to access the Eve Online API data and place it into a
11
 * database.
12
 * Copyright (C) 2016 Michael Cummings
13
 *
14
 * This program is free software: you can redistribute it and/or modify it
15
 * under the terms of the GNU Lesser General Public License as published by the
16
 * Free Software Foundation, either version 3 of the License, or (at your
17
 * option) any later version.
18
 *
19
 * This program is distributed in the hope that it will be useful, but WITHOUT
20
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
22
 * for more details.
23
 *
24
 * You should have received a copy of the GNU Lesser General Public License
25
 * along with this program. If not, see
26
 * <http://www.gnu.org/licenses/>.
27
 *
28
 * You should be able to find a copy of this license in the LICENSE.md file. A
29
 * copy of the GNU GPL should also be available in the GNU-GPL.md file.
30
 *
31
 * @copyright 2016 Michael Cummings
32
 * @license   LGPL-3.0+
33
 * @author    Michael Cummings <[email protected]>
34
 */
35
namespace Spec\Yapeal;
36
37
/**
38
 * Class Invokable.
39
 */
40
class Invokable
41
{
42
    public function __invoke($value = null)
43
    {
44
        $service = new MockService();
45
        $service->value = $value;
46
        return $service;
47
    }
48
}
49