OgImageDTO
extends OgImageDTO
in package
FinalYes
Table of Contents
Properties
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getAlt() : string
- getHeight() : int|null
- getPath() : string
- getWidth() : int|null
- setAlt() : void
- setHeight() : void
- setPath() : void
- setWidth() : void
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$alt
protected
string
$alt
= ""
$height
protected
int|null
$height
= null
$path
protected
string
$path
= ""
$width
protected
int|null
$width
= null
Methods
__construct()
public
__construct([string $path = "" ][, string $alt = "" ][, int|null $width = null ][, int|null $height = null ]) : mixed
Parameters
- $path : string = ""
- $alt : string = ""
- $width : int|null = null
- $height : int|null = null
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAllTraits()
Returns all traits the class uses, including those used by parent classes and nested traits.
public
getAllTraits() : array<string, string>
Return values
array<string, string>getAlt()
public
getAlt() : string
Return values
stringgetHeight()
public
getHeight() : int|null
Return values
int|nullgetPath()
public
getPath() : string
Return values
stringgetWidth()
public
getWidth() : int|null
Return values
int|nullsetAlt()
public
setAlt(string $alt) : void
Parameters
- $alt : string
setHeight()
public
setHeight(int|null $height) : void
Parameters
- $height : int|null
setPath()
public
setPath(string $path) : void
Parameters
- $path : string
setWidth()
public
setWidth(int|null $width) : void
Parameters
- $width : int|null
getTraitsRecursive()
Walks the trait list recursively and collects nested traits too.
private
static getTraitsRecursive(array<string, string> $traits) : array<string, string>
Parameters
- $traits : array<string, string>