| @@ 115-126 (lines=12) @@ | ||
| 112 | * |
|
| 113 | * @throws Exceptions\InvalidStateException |
|
| 114 | */ |
|
| 115 | public function getHeading() : string |
|
| 116 | { |
|
| 117 | // Check if attribute is callable |
|
| 118 | if (is_callable($this->heading)) { |
|
| 119 | return (string) $this->callCallableAttribute($this->heading); |
|
| 120 | ||
| 121 | } elseif ($this->heading) { |
|
| 122 | return (string) $this->heading; |
|
| 123 | } |
|
| 124 | ||
| 125 | return NULL; |
|
| 126 | } |
|
| 127 | ||
| 128 | /** |
|
| 129 | * Set dialog question |
|
| @@ 193-204 (lines=12) @@ | ||
| 190 | * |
|
| 191 | * @throws Exceptions\InvalidStateException |
|
| 192 | */ |
|
| 193 | public function getIcon() : string |
|
| 194 | { |
|
| 195 | // Check if attribute is callable |
|
| 196 | if (is_callable($this->icon)) { |
|
| 197 | return (string) $this->callCallableAttribute($this->icon); |
|
| 198 | ||
| 199 | } elseif ($this->icon) { |
|
| 200 | return (string) $this->icon; |
|
| 201 | } |
|
| 202 | ||
| 203 | return NULL; |
|
| 204 | } |
|
| 205 | ||
| 206 | /** |
|
| 207 | * Set dialog handler |
|