<?php
namespace Wpupgrader\Libraries\WordPress\Plugins\Core\Settings\Page\Callback;

use Wpupgrader\Libraries\WordPress\Plugins\Core\Settings\Page\Callback;

class Toggle extends Callback
{
    public function callbackAction()
    {
        \printf('<input type="checkbox" value="1" %s %s toggle hidden /><label for="%s"></label>', $this->getNameIdString(), \checked(1, $this->getValue(), false), $this->getIdString());
        echo '<p>'.$this->getDescription().'</p>';
    }
}
