public function getText(String $text=null, String $colour='green', String $backgroundColor='black')
	{
		$colours = [
			'green' => Attributes::COLOR_GREEN,
			'red' => Attributes::COLOR_RED,
			'yellow' => Attributes::COLOR_YELLOW,
			'blue' => Attributes::COLOR_BLUE,
			'cyan' => Attributes::COLOR_CYAN,
			'magenta' => Attributes::COLOR_MAGENTA,
			'white' => Attributes::COLOR_WHITE,
		];

		$backgroundColors = [
			'green' => Attributes::BG_GREEN,
			'red' => Attributes::BG_RED,
			'yellow' => Attributes::BG_YELLOW,
			'blue' => Attributes::BG_BLUE,
			'cyan' => Attributes::BG_CYAN,
			'magenta' => Attributes::BG_MAGENTA,
			'black' => Attributes::BG_BLACK,
		];

		if (isset($colours[$colour])) {
			$text = $colours[$colour] . $text;
		}

		$text = $backgroundColors[$backgroundColor] . $text; 

		return $text . "\n";
	}
public function getText(String $text=null, String $colour='green', String $backgroundColor='black')
	{
		$colours = [
			'green' => Attributes::COLOR_GREEN,
			'red' => Attributes::COLOR_RED,
			'yellow' => Attributes::COLOR_YELLOW,
			'blue' => Attributes::COLOR_BLUE,
			'cyan' => Attributes::COLOR_CYAN,
			'magenta' => Attributes::COLOR_MAGENTA,
			'white' => Attributes::COLOR_WHITE,
		];

		$backgroundColors = [
			'green' => Attributes::BG_GREEN,
			'red' => Attributes::BG_RED,
			'yellow' => Attributes::BG_YELLOW,
			'blue' => Attributes::BG_BLUE,
			'cyan' => Attributes::BG_CYAN,
			'magenta' => Attributes::BG_MAGENTA,
			'black' => Attributes::BG_BLACK,
		];

		if (isset($colours[$colour])) {
			$text = $colours[$colour] . $text;
		}

		$text = $backgroundColors[$backgroundColor] . $text; 

		return $text . "\n";
	}
public function getText ( String $ text = null , String $ colour = 'green' , String $ backgroundColor = 'black' ) { $ colours = [ 'green' => Attributes :: COLOR_GREEN , 'red' => Attributes :: COLOR_RED , 'yellow' => Attributes :: COLOR_YELLOW , 'blue' => Attributes :: COLOR_BLUE , 'cyan' => Attributes :: COLOR_CYAN , 'magenta' => Attributes :: COLOR_MAGENTA , 'white' => Attributes :: COLOR_WHITE , ] ; $ backgroundColors = [ 'green' => Attributes :: BG_GREEN , 'red' => Attributes :: BG_RED , 'yellow' => Attributes :: BG_YELLOW , 'blue' => Attributes :: BG_BLUE , 'cyan' => Attributes :: BG_CYAN , 'magenta' => Attributes :: BG_MAGENTA , 'black' => Attributes :: BG_BLACK , ] ; if ( isset ( $ colours [ $ colour ] ) ) { $ text = $ colours [ $ colour ] . $ text ; } $ text = $ backgroundColors [ $ backgroundColor ] . $ text ; return $ text . "\n" ; }
Returns text with option to set the text colour.

@param 	$text <String>
@param 	$colour <String>
@param 	$backgroundColor <String>
@access 	public
@return 	<Mixed>
Returns text with option to set the text colour .