PaintingMotive
Table of Contents
-
$height
: int
-
$motives
: array<string|int, PaintingMotive>
-
$name
: string
-
$width
: int
-
__construct()
: mixed
-
__toString()
: string
-
getAll()
: array<string|int, PaintingMotive>
-
getHeight()
: int
-
getMotiveByName()
: PaintingMotive|null
-
getName()
: string
-
getWidth()
: int
-
init()
: void
-
registerMotive()
: void
$height
protected
int
$height
$motives
protected
static array<string|int, PaintingMotive>
$motives
= []
$name
protected
string
$name
$width
protected
int
$width
__construct()
public
__construct(int $width, int $height, string $name) : mixed
Parameters
-
$width
: int
-
-
$height
: int
-
-
$name
: string
-
Return values
mixed
—
__toString()
public
__toString() : string
Return values
string
—
getAll()
public
static getAll() : array<string|int, PaintingMotive>
Return values
array<string|int, PaintingMotive>
—
getHeight()
public
getHeight() : int
Return values
int
—
getMotiveByName()
public
static getMotiveByName(string $name) : PaintingMotive|null
Parameters
-
$name
: string
-
Return values
PaintingMotive|null
—
getName()
public
getName() : string
Return values
string
—
getWidth()
public
getWidth() : int
Return values
int
—
init()
public
static init() : void
Return values
void
—
registerMotive()
public
static registerMotive(PaintingMotive $motive) : void
Parameters
-
$motive
: PaintingMotive
-
Return values
void
—