protected static function parseButton(ButtonInterface $button, array $args) {

        $button->setActive(ArrayHelper::get($args, "active", false));
        $button->setBlock(ArrayHelper::get($args, "block", false));
        $button->setContent(ArrayHelper::get($args, "content"));
        $button->setDisabled(ArrayHelper::get($args, "disabled", false));
        $button->setSize(ArrayHelper::get($args, "size"));
        $button->setTitle(ArrayHelper::get($args, "title"));

        return $button;
    }
protected static function parseButton(ButtonInterface $button, array $args) {

        $button->setActive(ArrayHelper::get($args, "active", false));
        $button->setBlock(ArrayHelper::get($args, "block", false));
        $button->setContent(ArrayHelper::get($args, "content"));
        $button->setDisabled(ArrayHelper::get($args, "disabled", false));
        $button->setSize(ArrayHelper::get($args, "size"));
        $button->setTitle(ArrayHelper::get($args, "title"));

        return $button;
    }
protected static function parseButton ( ButtonInterface $ button , array $ args ) { $ button -> setActive ( ArrayHelper :: get ( $ args , "active" , false ) ) ; $ button -> setBlock ( ArrayHelper :: get ( $ args , "block" , false ) ) ; $ button -> setContent ( ArrayHelper :: get ( $ args , "content" ) ) ; $ button -> setDisabled ( ArrayHelper :: get ( $ args , "disabled" , false ) ) ; $ button -> setSize ( ArrayHelper :: get ( $ args , "size" ) ) ; $ button -> setTitle ( ArrayHelper :: get ( $ args , "title" ) ) ; return $ button ; }
Parses a button.

@param ButtonInterface $button The button.
@param array $args The arguments.
@return ButtonInterface Returns the button.
Parses a button .