Current File : /home/aventura/www/site/wp-content/plugins/victheme_core/vtcore/validator/min.php
<?php
/**
 * Text validation class for testing value is less than minimum limit
 *
 * @author jason.xie@victheme.com
 */
class VTCore_Validator_Min
extends VTCore_Validator_Base {

  private $limit;

  public function validateText() {
    if ($this->getLimit() !== NULL && $this->getText() !== '') {
      return ((float) $this->getText() >= (float) $this->getLimit());
    }

    return true;
  }

  public function getLimit() {
    return $this->limit;
  }

  public function setLimit($limit) {
    $this->limit = $limit;
  }
}