Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
/**
6
 * This file is part of Collision.
7
 *
8
 * (c) Nuno Maduro <enunomaduro@gmail.com>
9
 *
10
 *  For the full copyright and license information, please view the LICENSE
11
 *  file that was distributed with this source code.
12
 */
13
 
14
namespace NunoMaduro\Collision\Contracts;
15
 
16
use Symfony\Component\Console\Output\OutputInterface;
17
use Whoops\Exception\Inspector;
18
 
19
/**
20
 * @internal
21
 */
22
interface Writer
23
{
24
    /**
25
     * Ignores traces where the file string matches one
26
     * of the provided regex expressions.
27
     *
28
     * @param  string[]  $ignore the regex expressions
29
     * @return \NunoMaduro\Collision\Contracts\Writer
30
     */
31
    public function ignoreFilesIn(array $ignore): Writer;
32
 
33
    /**
34
     * Declares whether or not the Writer should show the trace.
35
     *
36
     * @return \NunoMaduro\Collision\Contracts\Writer
37
     */
38
    public function showTrace(bool $show): Writer;
39
 
40
    /**
41
     * Declares whether or not the Writer should show the title.
42
     *
43
     * @return \NunoMaduro\Collision\Contracts\Writer
44
     */
45
    public function showTitle(bool $show): Writer;
46
 
47
    /**
48
     * Declares whether or not the Writer should show the editor.
49
     *
50
     * @return \NunoMaduro\Collision\Contracts\Writer
51
     */
52
    public function showEditor(bool $show): Writer;
53
 
54
    /**
55
     * Writes the details of the exception on the console.
56
     */
57
    public function write(Inspector $inspector): void;
58
 
59
    /**
60
     * Sets the output.
61
     *
62
     * @return \NunoMaduro\Collision\Contracts\Writer
63
     */
64
    public function setOutput(OutputInterface $output): Writer;
65
 
66
    /**
67
     * Gets the output.
68
     */
69
    public function getOutput(): OutputInterface;
70
}