index/src/Colour/ColourNull.php

29 lines
465 B
PHP
Raw Normal View History

2023-01-02 03:23:48 +00:00
<?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';
}
}