15 lines
267 B
TypeScript
15 lines
267 B
TypeScript
|
import { Paragraph } from "./paragraph";
|
||
|
|
||
|
export class Footer {
|
||
|
hasNumberings = false;
|
||
|
children: Paragraph[] = [];
|
||
|
|
||
|
addParagraph(p: Paragraph) {
|
||
|
if (p.hasNumberings) {
|
||
|
this.hasNumberings = true;
|
||
|
}
|
||
|
this.children.push(p);
|
||
|
return this;
|
||
|
}
|
||
|
}
|