Crop.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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\Transcoder;
  18. class Crop extends \Google\Model
  19. {
  20. /**
  21. * The number of pixels to crop from the bottom. The default is 0.
  22. *
  23. * @var int
  24. */
  25. public $bottomPixels;
  26. /**
  27. * The number of pixels to crop from the left. The default is 0.
  28. *
  29. * @var int
  30. */
  31. public $leftPixels;
  32. /**
  33. * The number of pixels to crop from the right. The default is 0.
  34. *
  35. * @var int
  36. */
  37. public $rightPixels;
  38. /**
  39. * The number of pixels to crop from the top. The default is 0.
  40. *
  41. * @var int
  42. */
  43. public $topPixels;
  44. /**
  45. * The number of pixels to crop from the bottom. The default is 0.
  46. *
  47. * @param int $bottomPixels
  48. */
  49. public function setBottomPixels($bottomPixels)
  50. {
  51. $this->bottomPixels = $bottomPixels;
  52. }
  53. /**
  54. * @return int
  55. */
  56. public function getBottomPixels()
  57. {
  58. return $this->bottomPixels;
  59. }
  60. /**
  61. * The number of pixels to crop from the left. The default is 0.
  62. *
  63. * @param int $leftPixels
  64. */
  65. public function setLeftPixels($leftPixels)
  66. {
  67. $this->leftPixels = $leftPixels;
  68. }
  69. /**
  70. * @return int
  71. */
  72. public function getLeftPixels()
  73. {
  74. return $this->leftPixels;
  75. }
  76. /**
  77. * The number of pixels to crop from the right. The default is 0.
  78. *
  79. * @param int $rightPixels
  80. */
  81. public function setRightPixels($rightPixels)
  82. {
  83. $this->rightPixels = $rightPixels;
  84. }
  85. /**
  86. * @return int
  87. */
  88. public function getRightPixels()
  89. {
  90. return $this->rightPixels;
  91. }
  92. /**
  93. * The number of pixels to crop from the top. The default is 0.
  94. *
  95. * @param int $topPixels
  96. */
  97. public function setTopPixels($topPixels)
  98. {
  99. $this->topPixels = $topPixels;
  100. }
  101. /**
  102. * @return int
  103. */
  104. public function getTopPixels()
  105. {
  106. return $this->topPixels;
  107. }
  108. }
  109. // Adding a class alias for backwards compatibility with the previous class name.
  110. class_alias(Crop::class, 'Google_Service_Transcoder_Crop');