'use strict';

(function () {

  function _obj() {}

  _obj.prototype = {

    setNext: function (next) {
      this.next = next;
    },

    identify: function (phone) {
      if (phone && phone.length == 10) {
        return 'eightDigitsWithDdd';
      }
      return this.next.identify(phone);
    }
  };

  exports.eightDigitsWithDddIdentifier = _obj;
}());
