allowedValues, ); $expectedAsString = implode(', ', $allowedValues); return "is one of $expectedAsString"; } protected function matches($other): bool { return in_array($other, $this->allowedValues); } }