1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | class ReflectionCategory {
|
4 | constructor(title) {
|
5 | this.children = [];
|
6 | this.title = title;
|
7 | this.allChildrenHaveOwnDocument = (() => this.getAllChildrenHaveOwnDocument());
|
8 | }
|
9 | getAllChildrenHaveOwnDocument() {
|
10 | let onlyOwnDocuments = true;
|
11 | this.children.forEach((child) => {
|
12 | onlyOwnDocuments = onlyOwnDocuments && !!child.hasOwnDocument;
|
13 | });
|
14 | return onlyOwnDocuments;
|
15 | }
|
16 | }
|
17 | exports.ReflectionCategory = ReflectionCategory;
|
18 |
|
\ | No newline at end of file |