code: public static function getDatabaseColumnValidationValue(ColumnMapper $databaseColumnMapper, string $validationType)
      {
          foreach (self::getDatabaseColumnValidation($databaseColumnMapper) as $validation) {
              if (!is_array($validation) && $validation == $validationType) {
                  return true;
              } elseif (is_array($validation) && $validation[0] == $validationType) {
                  return $validation[1];
              }
          }
  
          return false;
      }
docs: returns true, false, or validation value