Exemplo n.º 1
0
 public function withButton(Button $button = null)
 {
     if ($button) {
         $this->button = $button;
     } else {
         $button = new Button();
         $this->button = $button->withValue('Open Modal');
     }
     return $this;
 }
Exemplo n.º 2
0
 /**
  * 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);
 }