public function validate($input) { $length = $this->extractLength($input); return $this->validateMin($length) && $this->validateMax($length); }