public function addButton($button)
    {
        $buttons = $this->buttons;

        // If buttons isn't an array, set it
        if (!is_array($buttons)) {
            $buttons = array();
        }

        $buttons[] = $button;

        $this->buttons = $buttons;

        return $this;
    }
public function addButton($button)
    {
        $buttons = $this->buttons;

        // If buttons isn't an array, set it
        if (!is_array($buttons)) {
            $buttons = array();
        }

        $buttons[] = $button;

        $this->buttons = $buttons;

        return $this;
    }
public function addButton ( $ button ) { $ buttons = $ this -> buttons ; // If buttons isn't an array, set it if ( ! is_array ( $ buttons ) ) { $ buttons = array ( ) ; } $ buttons [ ] = $ button ; $ this -> buttons = $ buttons ; return $ this ; }
Set our array of buttons

@param
@return Object
Set our array of buttons