PHP Classes

File: src/Interfaces/FormatInterface.php

Recommend this page to a friend!
  Classes of Rodolfo Berrios Arce   Var-Dump   src/Interfaces/FormatInterface.php   Download  
File: src/Interfaces/FormatInterface.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,033 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;

/**
 * Describes the component in charge of formatting the var dump strings.
 */
interface FormatInterface
{
   
/**
     * Get indent for the given `$indent` size.
     */
   
public function indent(int $indent): string;

   
/**
     * Get emphasis for the given `$string`.
     */
   
public function emphasis(string $string): string;

   
/**
     * Get `$string` without encoded chars.
     */
   
public function filterEncodedChars(string $string): string;

   
/**
     * Get highlighted `$string` identified by `$key`.
     *
     * @see HighlightInterface
     */
   
public function highlight(string $key, string $string): string;

    public function
detailsOpen(bool $open): string;

    public function
detailsClose(): string;
}