InputService::getInput()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
/**
4
 * InputService.php
5
 *
6
 * @author Dominik Kocuj
7
 * @license https://opensource.org/licenses/MIT The MIT License
8
 * @copyright Copyright (c) 2017-2018 kocuj.pl
9
 */
10
11
namespace Kocuj\Di\Examples\Example1\Lib;
12
13
/**
14
 * Input service
15
 *
16
 * @package Kocuj\Di\Examples\Example1\Lib
17
 */
18
class InputService implements InputServiceInterface
19
{
20
    /**
21
     * Constructor
22
     */
23
    public function __construct()
24
    {
25
        // display information
26
        echo 'InputService created' . PHP_EOL;
27
    }
28
29
    /**
30
     * Get input
31
     *
32
     * @return string Input string
33
     * @see \Kocuj\Di\Examples\Example1\Lib\InputServiceInterface::getInput()
34
     */
35
    public function getInput(): string
36
    {
37
        // exit
38
        return 'This is test of input in example class.';
39
    }
40
}
41