29 lines
465 B
PHP
29 lines
465 B
PHP
<?php
|
|
namespace Index\Colour;
|
|
|
|
class ColourNull extends Colour {
|
|
public function getRed(): int {
|
|
return 0;
|
|
}
|
|
|
|
public function getGreen(): int {
|
|
return 0;
|
|
}
|
|
|
|
public function getBlue(): int {
|
|
return 0;
|
|
}
|
|
|
|
public function getAlpha(): float {
|
|
return 1;
|
|
}
|
|
|
|
public function shouldInherit(): bool {
|
|
return true;
|
|
}
|
|
|
|
public function __toString(): string {
|
|
return 'inherit';
|
|
}
|
|
}
|