src/Constraints/IsSelected.php
protected function getCheckedValueFromRadioGroup(Crawler $radioGroup)
    {
        foreach ($radioGroup as $radio) {
            if ($radio->hasAttribute('checked')) {
                return $radio->getAttribute('value');
            }
        }
    }
protected function getCheckedValueFromRadioGroup(Crawler $radioGroup)
    {
        foreach ($radioGroup as $radio) {
            if ($radio->hasAttribute('checked')) {
                return $radio->getAttribute('value');
            }
        }
    }
protected function getCheckedValueFromRadioGroup ( Crawler $ radioGroup ) { foreach ( $ radioGroup as $ radio ) { if ( $ radio -> hasAttribute ( 'checked' ) ) { return $ radio -> getAttribute ( 'value' ) ; } } }
Get the checked value from a radio group.

@param  \Symfony\Component\DomCrawler\Crawler  $radioGroup
@return string|null
Get the checked value from a radio group .