| @@ 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. |
|
| @@ 500-509 (lines=10) @@ | ||
| 497 | * |
|
| 498 | * @return $this |
|
| 499 | */ |
|
| 500 | public function options($options = []) |
|
| 501 | { |
|
| 502 | if ($options instanceof Arrayable) { |
|
| 503 | $options = $options->toArray(); |
|
| 504 | } |
|
| 505 | ||
| 506 | $this->options = array_merge($this->options, $options); |
|
| 507 | ||
| 508 | return $this; |
|
| 509 | } |
|
| 510 | ||
| 511 | /** |
|
| 512 | * Set the field option checked. |
|