| @@ 320-329 (lines=10) @@ | ||
| 317 | * @param string|null $icon2 |
|
| 318 | * @return $this |
|
| 319 | */ |
|
| 320 | public function icon($icon, $icon2 = null) |
|
| 321 | { |
|
| 322 | $this->icon = trim($icon); |
|
| 323 | ||
| 324 | if (! empty($icon2)) { |
|
| 325 | $this->icon2 = trim($icon2); |
|
| 326 | } |
|
| 327 | ||
| 328 | return $this; |
|
| 329 | } |
|
| 330 | ||
| 331 | /** |
|
| 332 | * Adds a CardAttribute to the card. |
|
| @@ 90-99 (lines=10) @@ | ||
| 87 | * @param string|null $icon2 |
|
| 88 | * @return $this |
|
| 89 | */ |
|
| 90 | public function icon($icon, $icon2 = null) |
|
| 91 | { |
|
| 92 | $this->icon = trim($icon); |
|
| 93 | ||
| 94 | if (! empty($icon2)) { |
|
| 95 | $this->icon2 = trim($icon2); |
|
| 96 | } |
|
| 97 | ||
| 98 | return $this; |
|
| 99 | } |
|
| 100 | ||
| 101 | /** |
|
| 102 | * Create a new instance of the attribute. |
|