Component
last analyzed

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10

1 Method

Rating   Name   Duplication   Size   Complexity  
render() 0 1 ?
1
<?php
2
3
/*
4
 * This file is part of the webmozart/console package.
5
 *
6
 * (c) Bernhard Schussek <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Webmozart\Console\UI;
13
14
use Webmozart\Console\Api\IO\IO;
15
16
/**
17
 * A UI component that can be rendered on the I/O.
18
 *
19
 * @since  1.0
20
 *
21
 * @author Bernhard Schussek <[email protected]>
22
 */
23
interface Component
24
{
25
    /**
26
     * Renders the component.
27
     *
28
     * @param IO  $io          The I/O.
29
     * @param int $indentation The number of spaces to indent.
30
     */
31
    public function render(IO $io, $indentation = 0);
0 ignored issues
show
Documentation introduced by
For interfaces and abstract methods it is generally a good practice to add a @return annotation even if it is just @return void or @return null, so that implementors know what to do in the overridden method.

For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a @return doc comment to communicate to implementors of these methods what they are expected to return.

Loading history...
32
}
33