Test Failed
Push — master ( e387ef...0464de )
by Lexey
03:14
created

ComposerIO::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace LF\EnvDiff\IO;
4
5
use Composer\IO\IOInterface as ComposerIOInterface;
6
7
/**
8
 * @codeCoverageIgnore
9
 */
10
class ComposerIO implements IOInterface
11
{
12
    /** @var ComposerIOInterface */
13
    private $io;
14
15
    /**
16
     * ComposerIO constructor.
17
     *
18
     * @param ComposerIOInterface $io
19
     */
20
    public function __construct(ComposerIOInterface $io)
21
    {
22
        $this->io = $io;
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function write($message)
29
    {
30
        $this->io->write($message);
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36
    public function isInteractive()
37
    {
38
        return $this->io->isInteractive();
39
    }
40
41
    /**
42
     * {@inheritdoc}
43
     */
44
    public function ask($question, $default = null)
45
    {
46
        return $this->ask($question, $default);
47
    }
48
}
49