TextContent.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. namespace Google\Service\Slides;
  18. class TextContent extends \Google\Collection
  19. {
  20. protected $collection_key = 'textElements';
  21. protected $listsType = SlidesList::class;
  22. protected $listsDataType = 'map';
  23. protected $textElementsType = TextElement::class;
  24. protected $textElementsDataType = 'array';
  25. /**
  26. * The bulleted lists contained in this text, keyed by list ID.
  27. *
  28. * @param SlidesList[] $lists
  29. */
  30. public function setLists($lists)
  31. {
  32. $this->lists = $lists;
  33. }
  34. /**
  35. * @return SlidesList[]
  36. */
  37. public function getLists()
  38. {
  39. return $this->lists;
  40. }
  41. /**
  42. * The text contents broken down into its component parts, including styling
  43. * information. This property is read-only.
  44. *
  45. * @param TextElement[] $textElements
  46. */
  47. public function setTextElements($textElements)
  48. {
  49. $this->textElements = $textElements;
  50. }
  51. /**
  52. * @return TextElement[]
  53. */
  54. public function getTextElements()
  55. {
  56. return $this->textElements;
  57. }
  58. }
  59. // Adding a class alias for backwards compatibility with the previous class name.
  60. class_alias(TextContent::class, 'Google_Service_Slides_TextContent');