PHP Classes

File: src/Interfaces/OutputInterface.php

Recommend this page to a friend!
  Classes of Rodolfo Berrios Arce   Var-Dump   src/Interfaces/OutputInterface.php   Download  
File: src/Interfaces/OutputInterface.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Var-Dump
Show the value of a variable in colored way
Author: By
Last change:
Date: 1 month ago
Size: 1,227 bytes
 

Contents

Class file image Download
<?php

/*
 * This file is part of Chevere.
 *
 * (c) Rodolfo Berrios <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace
Chevere\VarDump\Interfaces;

use
Chevere\Writer\Interfaces\WriterInterface;

/**
 * Describes the component in charge of orchestrating the var dump output processing.
 */
interface OutputInterface
{
   
/**
     * This method is executed before `prepare()`.
     * @param array<array<string, mixed>> $trace
     */
   
public function setUp(WriterInterface $writer, array $trace): void;

   
/**
     * Ends the output.
     */
   
public function finalize(): void;

   
/**
     * Writes the caller file using the target formatter.
     */
   
public function writeCallerFile(FormatInterface $format): void;

   
/**
     * Provides access to the instance backtrace.
     * @return array<array<string, mixed>>
     */
   
public function trace(): array;

   
/**
     * Provides access to the instance caller.
     */
   
public function caller(): string;

   
/**
     * This method is executed before `finalize()`.
     */
   
public function prepare(): void;
}