<commit_before><?php
/**
 * Vision PHP-Framework
 *
 * @author <NAME> <<EMAIL>>
 * @copyright 2012-2013 <NAME>
 * @license http://www.opensource.org/licenses/mit-license.php MIT
 */
namespace Vision\Form\Control;

use Vision\Form\AbstractType;
use Vision\Filter\FilterInterface;
use Vision\Validator;

/**
 * AbstractControl
 *
 * @author <NAME> <<EMAIL>>
 */
abstract class AbstractControl extends AbstractType
{
    /** @type array $filters */
    protected $filters = array();

    /** @type array $errors */
    protected $errors = array();

    /** @type null|string $label */
    protected $label;

    /** @type mixed $data The value before filtering/validation. */
    protected $data;

    /** @type mixed $value The value after filtering/validation. */
    protected $value;

    /** @type bool $forceNull */
    protected $forceNull = true;

    /**
     * @api
     *
     * @param FilterInterface $filter
     *
     * @return $this Provides a fluent interface.
     */
    public function addFilter(FilterInterface $filter)
    {
        $this->filters[] = $filter;
        return $this;
    }

    /**
     * @api
     *
     * @param array $filters
     *<commit_msg>Remove: misleading docblock description<commit_after><?php
/**
 * Vision PHP-Framework
 *
 * @author <NAME> <<EMAIL>>
 * @copyright 2012-2013 <NAME>
 * @license http://www.opensource.org/licenses/mit-license.php MIT
 */
namespace Vision\Form\Control;

use Vision\Form\AbstractType;
use Vision\Filter\FilterInterface;
use Vision\Validator;

/**
 * AbstractControl
 *
 * @author <NAME> <<EMAIL>>
 */
abstract class AbstractControl extends AbstractType
{
    /** @type array $filters */
    protected $filters = array();

    /** @type array $errors */
    protected $errors = array();

    /** @type null|string $label */
    protected $label;

    /** @type mixed $data */
    protected $data;

    /** @type mixed $value */
    protected $value;

    /** @type bool $forceNull */
    protected $forceNull = true;

    /**
     * @api
     *
     * @param FilterInterface $filter
     *
     * @return $this Provides a fluent interface.
     */
    public function addFilter(FilterInterface $filter)
    {
        $this->filters[] = $filter;
        return $this;
    }

    /**
     * @api
     *
     * @param array $filters
     *
{'fraction_non_alphanumeric': 0.14643628509719223, 'fraction_numerical': 0.006911447084233261, 'mean_word_length': 2.563076923076923, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6428933', 'n_tokens_mistral': 701, 'n_tokens_neox': 671, 'n_words': 179}