1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 Google Inc.
|
---|
4 | *
|
---|
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
7 | * the License at
|
---|
8 | *
|
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | *
|
---|
11 | * Unless required by applicable law or agreed to in writing, software
|
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
14 | * License for the specific language governing permissions and limitations under
|
---|
15 | * the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | namespace Google\Service\Docs;
|
---|
19 |
|
---|
20 | class StructuralElement extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var int
|
---|
24 | */
|
---|
25 | public $endIndex;
|
---|
26 | protected $paragraphType = Paragraph::class;
|
---|
27 | protected $paragraphDataType = '';
|
---|
28 | protected $sectionBreakType = SectionBreak::class;
|
---|
29 | protected $sectionBreakDataType = '';
|
---|
30 | /**
|
---|
31 | * @var int
|
---|
32 | */
|
---|
33 | public $startIndex;
|
---|
34 | protected $tableType = Table::class;
|
---|
35 | protected $tableDataType = '';
|
---|
36 | protected $tableOfContentsType = TableOfContents::class;
|
---|
37 | protected $tableOfContentsDataType = '';
|
---|
38 |
|
---|
39 | /**
|
---|
40 | * @param int
|
---|
41 | */
|
---|
42 | public function setEndIndex($endIndex)
|
---|
43 | {
|
---|
44 | $this->endIndex = $endIndex;
|
---|
45 | }
|
---|
46 | /**
|
---|
47 | * @return int
|
---|
48 | */
|
---|
49 | public function getEndIndex()
|
---|
50 | {
|
---|
51 | return $this->endIndex;
|
---|
52 | }
|
---|
53 | /**
|
---|
54 | * @param Paragraph
|
---|
55 | */
|
---|
56 | public function setParagraph(Paragraph $paragraph)
|
---|
57 | {
|
---|
58 | $this->paragraph = $paragraph;
|
---|
59 | }
|
---|
60 | /**
|
---|
61 | * @return Paragraph
|
---|
62 | */
|
---|
63 | public function getParagraph()
|
---|
64 | {
|
---|
65 | return $this->paragraph;
|
---|
66 | }
|
---|
67 | /**
|
---|
68 | * @param SectionBreak
|
---|
69 | */
|
---|
70 | public function setSectionBreak(SectionBreak $sectionBreak)
|
---|
71 | {
|
---|
72 | $this->sectionBreak = $sectionBreak;
|
---|
73 | }
|
---|
74 | /**
|
---|
75 | * @return SectionBreak
|
---|
76 | */
|
---|
77 | public function getSectionBreak()
|
---|
78 | {
|
---|
79 | return $this->sectionBreak;
|
---|
80 | }
|
---|
81 | /**
|
---|
82 | * @param int
|
---|
83 | */
|
---|
84 | public function setStartIndex($startIndex)
|
---|
85 | {
|
---|
86 | $this->startIndex = $startIndex;
|
---|
87 | }
|
---|
88 | /**
|
---|
89 | * @return int
|
---|
90 | */
|
---|
91 | public function getStartIndex()
|
---|
92 | {
|
---|
93 | return $this->startIndex;
|
---|
94 | }
|
---|
95 | /**
|
---|
96 | * @param Table
|
---|
97 | */
|
---|
98 | public function setTable(Table $table)
|
---|
99 | {
|
---|
100 | $this->table = $table;
|
---|
101 | }
|
---|
102 | /**
|
---|
103 | * @return Table
|
---|
104 | */
|
---|
105 | public function getTable()
|
---|
106 | {
|
---|
107 | return $this->table;
|
---|
108 | }
|
---|
109 | /**
|
---|
110 | * @param TableOfContents
|
---|
111 | */
|
---|
112 | public function setTableOfContents(TableOfContents $tableOfContents)
|
---|
113 | {
|
---|
114 | $this->tableOfContents = $tableOfContents;
|
---|
115 | }
|
---|
116 | /**
|
---|
117 | * @return TableOfContents
|
---|
118 | */
|
---|
119 | public function getTableOfContents()
|
---|
120 | {
|
---|
121 | return $this->tableOfContents;
|
---|
122 | }
|
---|
123 | }
|
---|
124 |
|
---|
125 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
126 | class_alias(StructuralElement::class, 'Google_Service_Docs_StructuralElement');
|
---|