| Conditions | 2 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { FieldNotFoundError } from "Errors/Entities/FieldNotFoundError"; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Field getter |
||
| 53 | * |
||
| 54 | * @param field |
||
| 55 | * |
||
| 56 | * @throws FieldNotFoundError |
||
| 57 | */ |
||
| 58 | public get(field: string): any { |
||
| 59 | if (typeof this.props[field] === "undefined") { |
||
| 60 | throw new FieldNotFoundError(field); |
||
| 61 | } |
||
| 62 | |||
| 63 | return this.props[field]; |
||
| 64 | } |
||
| 78 |