/** * Sets validator options * * @param mixed $token * @param string $field * * @return void */ public function __construct($token = null, $field = null) { parent::__construct($token); if (null !== $field) { $this->setField($field); } }