19declare(strict_types=1);
36 private readonly UIFactory $create
42 return $this->create->legacy()->content(sprintf(
43 '<div><b>%s</b><br/>%s</div>',
45 $this->definition->translatedCountry($this->criterion->arguments()[
'country'] ??
'')
51 return strtoupper($user->
getCountry()) === strtoupper($this->criterion->arguments()[
'country']);
56 return $this->definition;
61 return $other instanceof (self::class);
Builds a Color from either hex- or rgb values.
__construct(private readonly CriterionContent $criterion, private readonly UserCountryDefinition $definition, private readonly UIFactory $create)
knownToNeverMatchWith(Condition $other)
A component is the most general form of an entity in the UI.