2023-01-02 03:23:48 +00:00
|
|
|
<?php
|
2023-01-02 03:24:41 +00:00
|
|
|
// ColourNull.php
|
|
|
|
// Created: 2023-01-02
|
|
|
|
// Updated: 2023-01-02
|
|
|
|
|
2023-01-02 03:23:48 +00:00
|
|
|
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';
|
|
|
|
}
|
|
|
|
}
|