[e3d4e0a] | 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 Paragraph extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'positionedObjectIds';
|
---|
| 23 | protected $bulletType = Bullet::class;
|
---|
| 24 | protected $bulletDataType = '';
|
---|
| 25 | protected $elementsType = ParagraphElement::class;
|
---|
| 26 | protected $elementsDataType = 'array';
|
---|
| 27 | protected $paragraphStyleType = ParagraphStyle::class;
|
---|
| 28 | protected $paragraphStyleDataType = '';
|
---|
| 29 | /**
|
---|
| 30 | * @var string[]
|
---|
| 31 | */
|
---|
| 32 | public $positionedObjectIds;
|
---|
| 33 | protected $suggestedBulletChangesType = SuggestedBullet::class;
|
---|
| 34 | protected $suggestedBulletChangesDataType = 'map';
|
---|
| 35 | protected $suggestedParagraphStyleChangesType = SuggestedParagraphStyle::class;
|
---|
| 36 | protected $suggestedParagraphStyleChangesDataType = 'map';
|
---|
| 37 | protected $suggestedPositionedObjectIdsType = ObjectReferences::class;
|
---|
| 38 | protected $suggestedPositionedObjectIdsDataType = 'map';
|
---|
| 39 |
|
---|
| 40 | /**
|
---|
| 41 | * @param Bullet
|
---|
| 42 | */
|
---|
| 43 | public function setBullet(Bullet $bullet)
|
---|
| 44 | {
|
---|
| 45 | $this->bullet = $bullet;
|
---|
| 46 | }
|
---|
| 47 | /**
|
---|
| 48 | * @return Bullet
|
---|
| 49 | */
|
---|
| 50 | public function getBullet()
|
---|
| 51 | {
|
---|
| 52 | return $this->bullet;
|
---|
| 53 | }
|
---|
| 54 | /**
|
---|
| 55 | * @param ParagraphElement[]
|
---|
| 56 | */
|
---|
| 57 | public function setElements($elements)
|
---|
| 58 | {
|
---|
| 59 | $this->elements = $elements;
|
---|
| 60 | }
|
---|
| 61 | /**
|
---|
| 62 | * @return ParagraphElement[]
|
---|
| 63 | */
|
---|
| 64 | public function getElements()
|
---|
| 65 | {
|
---|
| 66 | return $this->elements;
|
---|
| 67 | }
|
---|
| 68 | /**
|
---|
| 69 | * @param ParagraphStyle
|
---|
| 70 | */
|
---|
| 71 | public function setParagraphStyle(ParagraphStyle $paragraphStyle)
|
---|
| 72 | {
|
---|
| 73 | $this->paragraphStyle = $paragraphStyle;
|
---|
| 74 | }
|
---|
| 75 | /**
|
---|
| 76 | * @return ParagraphStyle
|
---|
| 77 | */
|
---|
| 78 | public function getParagraphStyle()
|
---|
| 79 | {
|
---|
| 80 | return $this->paragraphStyle;
|
---|
| 81 | }
|
---|
| 82 | /**
|
---|
| 83 | * @param string[]
|
---|
| 84 | */
|
---|
| 85 | public function setPositionedObjectIds($positionedObjectIds)
|
---|
| 86 | {
|
---|
| 87 | $this->positionedObjectIds = $positionedObjectIds;
|
---|
| 88 | }
|
---|
| 89 | /**
|
---|
| 90 | * @return string[]
|
---|
| 91 | */
|
---|
| 92 | public function getPositionedObjectIds()
|
---|
| 93 | {
|
---|
| 94 | return $this->positionedObjectIds;
|
---|
| 95 | }
|
---|
| 96 | /**
|
---|
| 97 | * @param SuggestedBullet[]
|
---|
| 98 | */
|
---|
| 99 | public function setSuggestedBulletChanges($suggestedBulletChanges)
|
---|
| 100 | {
|
---|
| 101 | $this->suggestedBulletChanges = $suggestedBulletChanges;
|
---|
| 102 | }
|
---|
| 103 | /**
|
---|
| 104 | * @return SuggestedBullet[]
|
---|
| 105 | */
|
---|
| 106 | public function getSuggestedBulletChanges()
|
---|
| 107 | {
|
---|
| 108 | return $this->suggestedBulletChanges;
|
---|
| 109 | }
|
---|
| 110 | /**
|
---|
| 111 | * @param SuggestedParagraphStyle[]
|
---|
| 112 | */
|
---|
| 113 | public function setSuggestedParagraphStyleChanges($suggestedParagraphStyleChanges)
|
---|
| 114 | {
|
---|
| 115 | $this->suggestedParagraphStyleChanges = $suggestedParagraphStyleChanges;
|
---|
| 116 | }
|
---|
| 117 | /**
|
---|
| 118 | * @return SuggestedParagraphStyle[]
|
---|
| 119 | */
|
---|
| 120 | public function getSuggestedParagraphStyleChanges()
|
---|
| 121 | {
|
---|
| 122 | return $this->suggestedParagraphStyleChanges;
|
---|
| 123 | }
|
---|
| 124 | /**
|
---|
| 125 | * @param ObjectReferences[]
|
---|
| 126 | */
|
---|
| 127 | public function setSuggestedPositionedObjectIds($suggestedPositionedObjectIds)
|
---|
| 128 | {
|
---|
| 129 | $this->suggestedPositionedObjectIds = $suggestedPositionedObjectIds;
|
---|
| 130 | }
|
---|
| 131 | /**
|
---|
| 132 | * @return ObjectReferences[]
|
---|
| 133 | */
|
---|
| 134 | public function getSuggestedPositionedObjectIds()
|
---|
| 135 | {
|
---|
| 136 | return $this->suggestedPositionedObjectIds;
|
---|
| 137 | }
|
---|
| 138 | }
|
---|
| 139 |
|
---|
| 140 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 141 | class_alias(Paragraph::class, 'Google_Service_Docs_Paragraph');
|
---|