CoolCMS API

OgImageDTO extends BaseEntity
in package

Table of Contents

Properties

$alt  : string
$height  : int|null
$path  : string
$width  : int|null

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

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
string

getHeight()

public getHeight() : int|null
Return values
int|null

getPath()

public getPath() : string
Return values
string

getWidth()

public getWidth() : int|null
Return values
int|null

setAlt()

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>
Return values
array<string, string>
On this page

Search results