| @@ 27-36 (lines=10) @@ | ||
| 24 | * |
|
| 25 | * @return $this |
|
| 26 | */ |
|
| 27 | public function options($options = []) |
|
| 28 | { |
|
| 29 | if ($options instanceof Arrayable) { |
|
| 30 | $options = $options->toArray(); |
|
| 31 | } |
|
| 32 | ||
| 33 | $this->options = (array) $options; |
|
| 34 | ||
| 35 | return $this; |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * Set checked. |
|
| @@ 27-36 (lines=10) @@ | ||
| 24 | * |
|
| 25 | * @param array $options |
|
| 26 | */ |
|
| 27 | public function __construct($options = []) |
|
| 28 | { |
|
| 29 | if ($options instanceof Arrayable) { |
|
| 30 | $options = $options->toArray(); |
|
| 31 | } |
|
| 32 | ||
| 33 | $this->options = (array) $options; |
|
| 34 | ||
| 35 | return $this; |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * Draw stacked radios. |
|
| @@ 477-486 (lines=10) @@ | ||
| 474 | * |
|
| 475 | * @return $this |
|
| 476 | */ |
|
| 477 | public function options($options = []) |
|
| 478 | { |
|
| 479 | if ($options instanceof Arrayable) { |
|
| 480 | $options = $options->toArray(); |
|
| 481 | } |
|
| 482 | ||
| 483 | $this->options = array_merge($this->options, $options); |
|
| 484 | ||
| 485 | return $this; |
|
| 486 | } |
|
| 487 | ||
| 488 | /** |
|
| 489 | * Set the field option checked. |
|