jolocom / jolocom-lib

Library for interacting with the identity solution provided by Jolocom.
MIT License
24 stars 18 forks source link

Use accessors. #238

Closed Exulansis closed 6 years ago

Exulansis commented 6 years ago

Description

Change:

class Test {
  private issuer: string

  public getIssuer(): string {...}
  public setIssuer(did:string): void {...}
}

To:

class Test {
  private _issuer: string

  public get issuer(): string {...}
  public set issuer(did:string): void {...}
}

Results in nicer documentation and clearer interface

TODO