| @@ 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. |
|
| @@ 509-518 (lines=10) @@ | ||
| 506 | * |
|
| 507 | * @return $this |
|
| 508 | */ |
|
| 509 | public function options($options = []) |
|
| 510 | { |
|
| 511 | if ($options instanceof Arrayable) { |
|
| 512 | $options = $options->toArray(); |
|
| 513 | } |
|
| 514 | ||
| 515 | $this->options = array_merge($this->options, $options); |
|
| 516 | ||
| 517 | return $this; |
|
| 518 | } |
|
| 519 | ||
| 520 | /** |
|
| 521 | * Set the field option checked. |
|
| @@ 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. |
|