Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2declare(strict_types=1);
3/**
4 * Pop PHP Framework (https://www.popphp.org/)
5 *
6 * @link       https://github.com/popphp/popphp-framework
7 * @author     Nick Sagona, III <dev@noladev.com>
8 * @copyright  Copyright (c) 2009-2027 NOLA Interactive, LLC.
9 * @license    https://www.popphp.org/license     New BSD License
10 */
11
12/**
13 * @namespace
14 */
15namespace Pop\Code\Generator;
16
17/**
18 * Generator interface
19 *
20 * @category   Pop
21 * @package    Pop\Code
22 * @author     Nick Sagona, III <dev@noladev.com>
23 * @copyright  Copyright (c) 2009-2027 NOLA Interactive, LLC.
24 * @license    https://www.popphp.org/license     New BSD License
25 * @version    6.0.0
26 */
27interface GeneratorInterface
28{
29
30    /**
31     * Set the indent
32     *
33     * @param  int $indent
34     * @return GeneratorInterface
35     */
36    public function setIndent(int $indent): GeneratorInterface;
37
38    /**
39     * Get the indent
40     *
41     * @return int
42     */
43    public function getIndent(): int;
44
45    /**
46     * Has indent
47     *
48     * @return bool
49     */
50    public function hasIndent(): bool;
51
52    /**
53     * Print the indent
54     *
55     * @return string
56     */
57    public function printIndent(): string;
58
59    /**
60     * Get the output
61     *
62     * @return ?string
63     */
64    public function getOutput(): ?string;
65
66    /**
67     * Has output
68     *
69     * @return bool
70     */
71    public function hasOutput(): bool;
72
73    /**
74     * Is rendered (alias to hasOutput())
75     *
76     * @return bool
77     */
78    public function isRendered(): bool;
79
80    /**
81     * Render method
82     *
83     * @return string
84     */
85    public function render(): string;
86
87}