ErrorStreamWrapper
extends StreamResourceWrapper
in package
Minimalistic wrapper of input stream resources
This is not a fancy API.
It is mostly for type-safe passing around, allowing for injection-friendly interfaces and unwrapping the actual resource for consumption
Think about moving this somewhere but don't put it into a dependency-heavy environment
Tags
Table of Contents
- $resource : mixed
- __construct() : mixed
- Detect from SAPI if running CLI
- __invoke() : mixed
- Expose the resource to consuming functions
Properties
$resource
private
mixed
$resource
Methods
__construct()
Detect from SAPI if running CLI
public
__construct([mixed $resource = null ]) : mixed
Parameters
- $resource : mixed = null
Return values
mixed —__invoke()
Expose the resource to consuming functions
public
__invoke() : mixed