/**
* Init this class.
*
* @param string $name Name of this button.
* @param string $text The button text, will auto translate.
* @param array $options Button options.
*
* @since 4.0.0
*
* @throws \InvalidArgumentException
*/
public function __construct(string $name = '', string $text = '', array $options = [])
{
$this->name($name)->text($text);
$this->options = ArrayHelper::mergeRecursive($this->options, $options);
}