<?php
namespace Former\Form\Fields;

use Former\Traits\Checkable;

/**
 * My name is Bawksy you see
 */
class Checkbox extends Checkable
{
	/**
	 * The current checkable type
	 *
	 * @var string
	 */
	protected $checkable = 'checkbox';

	////////////////////////////////////////////////////////////////////
	////////////////////////// FIELD METHODS ///////////////////////////
	////////////////////////////////////////////////////////////////////

	/**
	 * Create a serie of checkboxes
	 */
	public function checkboxes()
	{
		if ($this->isGrouped()) {
			// Remove any possible items added by the Populator.
			$this->items = array();
		}
		$this->items(func_get_args());

		return $this;
	}
}
