Skip to content

Commit ebf469e

Browse files
authored
Merge pull request #38 from psousasingular/add-required-group
Add support for requireable in radiofield
2 parents d4750f3 + c8c5a0f commit ebf469e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sdk/Eversign/RadioField.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
use Eversign\CheckboxField;
3030
use JMS\Serializer\Annotation\Type;
31+
use Eversign\Requireable;
3132

3233
/**
3334
* Radio Button fields come with a fixed pixel width and height of 14x14.
@@ -37,6 +38,8 @@
3738
*/
3839
class RadioField extends CheckboxField {
3940

41+
use Requireable;
42+
4043
/**
4144
* This parameter is used to identify radio button groups.
4245
* RadioFields belonging to the same group must carry the same group parameter.
@@ -48,6 +51,7 @@ class RadioField extends CheckboxField {
4851
public function __construct() {
4952
parent::__construct();
5053
$this->setGroup(0);
54+
$this->setRequired(false);
5155
}
5256

5357
public function getGroup() {

0 commit comments

Comments
 (0)