\src\Utils\Color\RgbColor.inc

Show: inherited
Table of Contents

\Utils\Color\RgbColor

Package: Default

This class encapsulates an RGB color.

Parent(s)
\Utils\Color\Color

Properties

Propertyprotectedint  $blue= '0'

the blue color component

Default value0Details
Type
int
Propertyprotectedint  $green= '0'

the green color component

Default value0Details
Type
int
Propertyprotectedint  $red= '0'

the red color component

Default value0Details
Type
int

Methods

methodpublic__construct( int $red, int $green, int $blue ) : void

This method is the constructor of the class.

Parameters
Name Type Description
$red int

the red color component

$green int

the green color component

$blue int

the blue color component

methodpublic__get( string $memberName ) : mixed
inherited

This is a magic getter for the members of this class.

Inherited from: \Utils\Color\Color::__get()
Parameters
Name Type Description
$memberName string

the name of the member to get

Returns
Type Description
mixed the respective member
Details
Todo
this should not be in an abstract class, as it implies this functionality for all of its subclasses  
Todo
replace this with Trait in subclasses  
methodpublic__toString( ) : string

This method returns the DOM representation of the color, e.g. #000000 for black.

Returns
Type Description
string the color as string in its DOM representation
Documentation was generated by DocBlox 0.15.1.