ShapeBackgroundFill.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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 ShapeBackgroundFill extends \Google\Model
  19. {
  20. /**
  21. * If a property's state is RENDERED, then the element has the corresponding
  22. * property when rendered on a page. If the element is a placeholder shape as
  23. * determined by the placeholder field, and it inherits from a placeholder
  24. * shape, the corresponding field may be unset, meaning that the property
  25. * value is inherited from a parent placeholder. If the element does not
  26. * inherit, then the field will contain the rendered value. This is the
  27. * default value.
  28. */
  29. public const PROPERTY_STATE_RENDERED = 'RENDERED';
  30. /**
  31. * If a property's state is NOT_RENDERED, then the element does not have the
  32. * corresponding property when rendered on a page. However, the field may
  33. * still be set so it can be inherited by child shapes. To remove a property
  34. * from a rendered element, set its property_state to NOT_RENDERED.
  35. */
  36. public const PROPERTY_STATE_NOT_RENDERED = 'NOT_RENDERED';
  37. /**
  38. * If a property's state is INHERIT, then the property state uses the value of
  39. * corresponding `property_state` field on the parent shape. Elements that do
  40. * not inherit will never have an INHERIT property state.
  41. */
  42. public const PROPERTY_STATE_INHERIT = 'INHERIT';
  43. /**
  44. * The background fill property state. Updating the fill on a shape will
  45. * implicitly update this field to `RENDERED`, unless another value is
  46. * specified in the same request. To have no fill on a shape, set this field
  47. * to `NOT_RENDERED`. In this case, any other fill fields set in the same
  48. * request will be ignored.
  49. *
  50. * @var string
  51. */
  52. public $propertyState;
  53. protected $solidFillType = SolidFill::class;
  54. protected $solidFillDataType = '';
  55. /**
  56. * The background fill property state. Updating the fill on a shape will
  57. * implicitly update this field to `RENDERED`, unless another value is
  58. * specified in the same request. To have no fill on a shape, set this field
  59. * to `NOT_RENDERED`. In this case, any other fill fields set in the same
  60. * request will be ignored.
  61. *
  62. * Accepted values: RENDERED, NOT_RENDERED, INHERIT
  63. *
  64. * @param self::PROPERTY_STATE_* $propertyState
  65. */
  66. public function setPropertyState($propertyState)
  67. {
  68. $this->propertyState = $propertyState;
  69. }
  70. /**
  71. * @return self::PROPERTY_STATE_*
  72. */
  73. public function getPropertyState()
  74. {
  75. return $this->propertyState;
  76. }
  77. /**
  78. * Solid color fill.
  79. *
  80. * @param SolidFill $solidFill
  81. */
  82. public function setSolidFill(SolidFill $solidFill)
  83. {
  84. $this->solidFill = $solidFill;
  85. }
  86. /**
  87. * @return SolidFill
  88. */
  89. public function getSolidFill()
  90. {
  91. return $this->solidFill;
  92. }
  93. }
  94. // Adding a class alias for backwards compatibility with the previous class name.
  95. class_alias(ShapeBackgroundFill::class, 'Google_Service_Slides_ShapeBackgroundFill');