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

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

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