|
@@ 78-85 (lines=8) @@
|
| 75 |
|
/** |
| 76 |
|
* @param string $ratio |
| 77 |
|
*/ |
| 78 |
|
public function setWebviewHeightRatio($ratio) |
| 79 |
|
{ |
| 80 |
|
if (!in_array($ratio, $this->getAllowedHeights())) { |
| 81 |
|
throw new \InvalidArgumentException(sprintf('Webview height ratio must be one of this values: [%s]', implode(', ', $this->getAllowedHeights()))); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
$this->webviewHeightRatio = $ratio; |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
/** |
| 88 |
|
* @param bool $messengerExtensions |
|
@@ 130-137 (lines=8) @@
|
| 127 |
|
/** |
| 128 |
|
* @param $value |
| 129 |
|
*/ |
| 130 |
|
public function setWebviewShareButton($value) |
| 131 |
|
{ |
| 132 |
|
if (!in_array($value, $this->getAllowedWebviewShareButton())) { |
| 133 |
|
throw new \InvalidArgumentException(sprintf('Webview share button must be one of this values: [%s]', implode(', ', $this->getAllowedWebviewShareButton()))); |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
$this->webviewShareButton = $value; |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
/** |
| 140 |
|
* @return string|null |