FlattenException
    
            
            in package
            
        
    
    
    
        
            FlattenException wraps a PHP Error or Exception to be able to serialize it.
Basically, this class removes all objects from the trace.
Tags
Table of Contents
- $asString : string|null
 - $class : string
 - $code : int|string
 - $file : string
 - $headers : array<string|int, mixed>
 - $line : int
 - $message : string
 - $previous : self|null
 - $statusCode : int
 - $statusText : string
 - $trace : array<string|int, mixed>
 - $traceAsString : string
 - create() : static
 - createFromThrowable() : static
 - getAllPrevious() : array<string|int, self>
 - getAsString() : string
 - getClass() : string
 - getCode() : int|string
 - getFile() : string
 - getHeaders() : array<string|int, mixed>
 - getLine() : int
 - getMessage() : string
 - getPrevious() : self|null
 - getStatusCode() : int
 - getStatusText() : string
 - getTrace() : array<string|int, mixed>
 - getTraceAsString() : string
 - setAsString() : $this
 - setClass() : $this
 - setCode() : $this
 - setFile() : $this
 - setHeaders() : $this
 - setLine() : $this
 - setMessage() : $this
 - setPrevious() : $this
 - setStatusCode() : $this
 - setStatusText() : $this
 - setTrace() : $this
 - setTraceFromThrowable() : $this
 - toArray() : array<string|int, mixed>
 - flattenArgs() : array<string|int, mixed>
 - getClassNameFromIncomplete() : string
 
Properties
$asString
    private
        string|null
    $asString
    
    
    
    
$class
    private
        string
    $class
    
    
    
    
$code
    private
        int|string
    $code
    
    
    
    
$file
    private
        string
    $file
    
    
    
    
$headers
    private
        array<string|int, mixed>
    $headers
    
    
    
    
$line
    private
        int
    $line
    
    
    
    
$message
    private
        string
    $message
    
    
    
    
$previous
    private
        self|null
    $previous
    
    
    
    
$statusCode
    private
        int
    $statusCode
    
    
    
    
$statusText
    private
        string
    $statusText
    
    
    
    
$trace
    private
        array<string|int, mixed>
    $trace
    
    
    
    
$traceAsString
    private
        string
    $traceAsString
    
    
    
    
Methods
create()
    public
            static    create(Exception $exception[, int|null $statusCode = null ][, array<string|int, mixed> $headers = [] ]) : static
    
        Parameters
- $exception : Exception
 - $statusCode : int|null = null
 - $headers : array<string|int, mixed> = []
 
Return values
static —createFromThrowable()
    public
            static    createFromThrowable(Throwable $exception[, int|null $statusCode = null ][, array<string|int, mixed> $headers = [] ]) : static
    
        Parameters
- $exception : Throwable
 - $statusCode : int|null = null
 - $headers : array<string|int, mixed> = []
 
Return values
static —getAllPrevious()
    public
                getAllPrevious() : array<string|int, self>
    
    
    
        Return values
array<string|int, self> —getAsString()
    public
                getAsString() : string
        
    
    
        Return values
string —getClass()
    public
                getClass() : string
        
    
    
        Return values
string —getCode()
    public
                getCode() : int|string
    
    
    
        Return values
int|string —int most of the time (might be a string with PDOException)
getFile()
    public
                getFile() : string
        
    
    
        Return values
string —getHeaders()
    public
                getHeaders() : array<string|int, mixed>
        
    
    
        Return values
array<string|int, mixed> —getLine()
    public
                getLine() : int
        
    
    
        Return values
int —getMessage()
    public
                getMessage() : string
        
    
    
        Return values
string —getPrevious()
    public
                getPrevious() : self|null
        
    
    
        Return values
self|null —getStatusCode()
    public
                getStatusCode() : int
        
    
    
        Return values
int —getStatusText()
    public
                getStatusText() : string
        
    
    
        Return values
string —getTrace()
    public
                getTrace() : array<string|int, mixed>
        
    
    
        Return values
array<string|int, mixed> —getTraceAsString()
    public
                getTraceAsString() : string
        
    
    
        Return values
string —setAsString()
    public
                setAsString(string|null $asString) : $this
    
        Parameters
- $asString : string|null
 
Return values
$this —setClass()
    public
                setClass(string $class) : $this
    
        Parameters
- $class : string
 
Return values
$this —setCode()
    public
                setCode(int|string $code) : $this
    
        Parameters
- $code : int|string
 
Return values
$this —setFile()
    public
                setFile(string $file) : $this
    
        Parameters
- $file : string
 
Return values
$this —setHeaders()
    public
                setHeaders(array<string|int, mixed> $headers) : $this
    
        Parameters
- $headers : array<string|int, mixed>
 
Return values
$this —setLine()
    public
                setLine(int $line) : $this
    
        Parameters
- $line : int
 
Return values
$this —setMessage()
    public
                setMessage(string $message) : $this
    
        Parameters
- $message : string
 
Return values
$this —setPrevious()
    public
                setPrevious(self|null $previous) : $this
    
        Parameters
- $previous : self|null
 
Return values
$this —setStatusCode()
    public
                setStatusCode(int $code) : $this
    
        Parameters
- $code : int
 
Return values
$this —setStatusText()
    public
                setStatusText(string $statusText) : $this
    
        Parameters
- $statusText : string
 
Return values
$this —setTrace()
    public
                setTrace(array<string|int, mixed> $trace, string|null $file, int|null $line) : $this
    
        Parameters
- $trace : array<string|int, mixed>
 - $file : string|null
 - $line : int|null
 
Return values
$this —setTraceFromThrowable()
    public
                setTraceFromThrowable(Throwable $throwable) : $this
    
        Parameters
- $throwable : Throwable
 
Return values
$this —toArray()
    public
                toArray() : array<string|int, mixed>
        
    
    
        Return values
array<string|int, mixed> —flattenArgs()
    private
                flattenArgs(array<string|int, mixed> $args, int $level, int &$count) : array<string|int, mixed>
        
        Parameters
- $args : array<string|int, mixed>
 - $level : int
 - $count : int
 
Return values
array<string|int, mixed> —getClassNameFromIncomplete()
    private
                getClassNameFromIncomplete(__PHP_Incomplete_Class $value) : string
        
        Parameters
- $value : __PHP_Incomplete_Class