public function getValue() : ArrayObject
    {
        foreach ((array)$this as $element) {
            if ($element->getElement() instanceof Radio
                && $element->getElement()->checked()
            ) {
                return new class([$element->getElement()->getValue()]) extends ArrayObject {
                    public function __toString() : string
                    {
                        return "{$this[0]}";
                    }
                };
            }
        }
        return new class([$this->value]) extends ArrayObject {
            public function __toString() : string
            {
                return "{$this[0]}";
            }
        };
    }
public function getValue() : ArrayObject
    {
        foreach ((array)$this as $element) {
            if ($element->getElement() instanceof Radio
                && $element->getElement()->checked()
            ) {
                return new class([$element->getElement()->getValue()]) extends ArrayObject {
                    public function __toString() : string
                    {
                        return "{$this[0]}";
                    }
                };
            }
        }
        return new class([$this->value]) extends ArrayObject {
            public function __toString() : string
            {
                return "{$this[0]}";
            }
        };
    }
public function getValue ( ) : ArrayObject { foreach ( ( array ) $ this as $ element ) { if ( $ element -> getElement ( ) instanceof Radio && $ element -> getElement ( ) -> checked ( ) ) { return new class ( [ $ element -> getElement ( ) -> getValue ( ) ] ) extends ArrayObject { public function __toString ( ) : string { return "{$this[0]}" ; } } ; } } return new class ( [ $ this -> value ] ) extends ArrayObject { public function __toString ( ) : string { return "{$this[0]}" ; } } ; }
Gets the checked value in the group.

@return array Array with a single entry (for compatibility with
Element\Group, but obviously radio groups can only ever have one entry
checked at a time).
Gets the checked value in the group .