<?php
/**
 * Created by PhpStorm.
 * User: sale
 * Date: 11.10.17.
 * Time: 19.31
 */

//namespace Intellex\AutoPopulate\Generator;
namespace Intellex\Generator\Basic;
use Intellex\Generator\Core\WeightedItemGenerator;
class BooleanGenerator extends WeightedItemGenerator {

    /**
     * BooleanGenerator constructor.
     *
     * @param int $percentage The percentage of which the true value will be generated.
     */
    public function __construct($percentage = 50) {
        parent::__construct([true => $percentage, false => 100 - $percentage]);
    }

}