mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-12 02:02:15 +01:00
Add harvest and generic imports
This commit is contained in:
committed by
Constantin Graf
parent
9faa8fe6e1
commit
f93c5370bf
@@ -33,6 +33,11 @@ class ColorService
|
||||
|
||||
private const string VALID_REGEX = '/^#[0-9a-f]{6}$/';
|
||||
|
||||
public function isBuiltInColor(string $color): bool
|
||||
{
|
||||
return in_array($color, self::COLORS, true);
|
||||
}
|
||||
|
||||
public function getRandomColor(?string $seed = null): string
|
||||
{
|
||||
if ($seed !== null) {
|
||||
|
||||
Reference in New Issue
Block a user