public function setButtons(array $buttons)
    {
        $resolver = static::getButtonOptionsResolver();
        $tmp = [];
        foreach ($buttons as $options) {
            $tmp[] = $resolver->resolve($options);
        }
        $this->buttons = $tmp;
        return $this;
    }
public function setButtons(array $buttons)
    {
        $resolver = static::getButtonOptionsResolver();
        $tmp = [];
        foreach ($buttons as $options) {
            $tmp[] = $resolver->resolve($options);
        }
        $this->buttons = $tmp;
        return $this;
    }
public function setButtons ( array $ buttons ) { $ resolver = static :: getButtonOptionsResolver ( ) ; $ tmp = [ ] ; foreach ( $ buttons as $ options ) { $ tmp [ ] = $ resolver -> resolve ( $ options ) ; } $ this -> buttons = $ tmp ; return $ this ; }
Sets the buttons.

@param array $buttons
@return Modal
Sets the buttons .