key; } /** * Group. * * @since 0.1.0 */ public function group(): string { return $this->group; } /** * Label. * * @since 0.1.0 */ public function label(): string { return $this->label; } /** * Description. * * @since 0.1.0 */ public function description(): string { return $this->description; } /** * Resolve against a context. * * @param VariableContext $context Context. * * @since 0.1.0 */ public function resolve( VariableContext $context ): string { $resolver = $this->resolver; $value = $resolver( $context ); return is_scalar( $value ) || null === $value ? (string) ( $value ?? '' ) : ''; } }