| @@ 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. |
|
| @@ 34-43 (lines=10) @@ | ||
| 31 | * |
|
| 32 | * @return $this |
|
| 33 | */ |
|
| 34 | public function options($options = []) |
|
| 35 | { |
|
| 36 | if ($options instanceof Arrayable) { |
|
| 37 | $options = $options->toArray(); |
|
| 38 | } |
|
| 39 | ||
| 40 | $this->options = (array) $options; |
|
| 41 | ||
| 42 | return $this; |
|
| 43 | } |
|
| 44 | ||
| 45 | /** |
|
| 46 | * Set checked. |
|
| @@ 544-553 (lines=10) @@ | ||
| 541 | * |
|
| 542 | * @return $this |
|
| 543 | */ |
|
| 544 | public function options($options = []) |
|
| 545 | { |
|
| 546 | if ($options instanceof Arrayable) { |
|
| 547 | $options = $options->toArray(); |
|
| 548 | } |
|
| 549 | ||
| 550 | $this->options = array_merge($this->options, $options); |
|
| 551 | ||
| 552 | return $this; |
|
| 553 | } |
|
| 554 | ||
| 555 | /** |
|
| 556 | * Set the field option checked. |
|