public function withButton(Button $button = null) { if ($button) { $this->button = $button; } else { $button = new Button(); $this->button = $button->withValue('Open Modal'); } return $this; }
/** * Sets the value of the button * * @param $value string The new value of the button * @return $this * @static */ public static function withValue($value = '') { return \Bootstrapper\Button::withValue($value); }