FileShaped
in package
FinalYes
Data object for file-shaped output entries
Tags
Attributes
- #[Consumable]
- $since: '35.0.0'
Table of Contents
Properties
- $data : string
- $extension : string
- $shapeType : EShapeType
Methods
- __construct() : mixed
- getData() : string
- getExtension() : string
- getShapeType() : EShapeType
- sanitizeExtension() : string
Properties
$data
private
string
$data
$extension
private
string
$extension
= ''
$shapeType
private
EShapeType
$shapeType
Methods
__construct()
public
__construct(EShapeType $shapeType, string $data[, string $extension = '' ]) : mixed
Parameters
- $shapeType : EShapeType
- $data : string
- $extension : string = ''
-
(optional)
Tags
getData()
public
getData() : string
Tags
Return values
stringgetExtension()
public
getExtension() : string
Tags
Return values
stringgetShapeType()
public
getShapeType() : EShapeType
Tags
Return values
EShapeTypesanitizeExtension()
public
static sanitizeExtension(string $ext) : string
Parameters
- $ext : string