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