| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304 |
- <?php
- /*
- * Copyright 2014 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
- namespace Google\Service\Slides;
- class PageElement extends \Google\Model
- {
- /**
- * The description of the page element. Combined with title to display alt
- * text. The field is not supported for Group elements.
- *
- * @var string
- */
- public $description;
- protected $elementGroupType = Group::class;
- protected $elementGroupDataType = '';
- protected $imageType = Image::class;
- protected $imageDataType = '';
- protected $lineType = Line::class;
- protected $lineDataType = '';
- /**
- * The object ID for this page element. Object IDs used by
- * google.apps.slides.v1.Page and google.apps.slides.v1.PageElement share the
- * same namespace.
- *
- * @var string
- */
- public $objectId;
- protected $shapeType = Shape::class;
- protected $shapeDataType = '';
- protected $sheetsChartType = SheetsChart::class;
- protected $sheetsChartDataType = '';
- protected $sizeType = Size::class;
- protected $sizeDataType = '';
- protected $speakerSpotlightType = SpeakerSpotlight::class;
- protected $speakerSpotlightDataType = '';
- protected $tableType = Table::class;
- protected $tableDataType = '';
- /**
- * The title of the page element. Combined with description to display alt
- * text. The field is not supported for Group elements.
- *
- * @var string
- */
- public $title;
- protected $transformType = AffineTransform::class;
- protected $transformDataType = '';
- protected $videoType = Video::class;
- protected $videoDataType = '';
- protected $wordArtType = WordArt::class;
- protected $wordArtDataType = '';
- /**
- * The description of the page element. Combined with title to display alt
- * text. The field is not supported for Group elements.
- *
- * @param string $description
- */
- public function setDescription($description)
- {
- $this->description = $description;
- }
- /**
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * A collection of page elements joined as a single unit.
- *
- * @param Group $elementGroup
- */
- public function setElementGroup(Group $elementGroup)
- {
- $this->elementGroup = $elementGroup;
- }
- /**
- * @return Group
- */
- public function getElementGroup()
- {
- return $this->elementGroup;
- }
- /**
- * An image page element.
- *
- * @param Image $image
- */
- public function setImage(Image $image)
- {
- $this->image = $image;
- }
- /**
- * @return Image
- */
- public function getImage()
- {
- return $this->image;
- }
- /**
- * A line page element.
- *
- * @param Line $line
- */
- public function setLine(Line $line)
- {
- $this->line = $line;
- }
- /**
- * @return Line
- */
- public function getLine()
- {
- return $this->line;
- }
- /**
- * The object ID for this page element. Object IDs used by
- * google.apps.slides.v1.Page and google.apps.slides.v1.PageElement share the
- * same namespace.
- *
- * @param string $objectId
- */
- public function setObjectId($objectId)
- {
- $this->objectId = $objectId;
- }
- /**
- * @return string
- */
- public function getObjectId()
- {
- return $this->objectId;
- }
- /**
- * A generic shape.
- *
- * @param Shape $shape
- */
- public function setShape(Shape $shape)
- {
- $this->shape = $shape;
- }
- /**
- * @return Shape
- */
- public function getShape()
- {
- return $this->shape;
- }
- /**
- * A linked chart embedded from Google Sheets. Unlinked charts are represented
- * as images.
- *
- * @param SheetsChart $sheetsChart
- */
- public function setSheetsChart(SheetsChart $sheetsChart)
- {
- $this->sheetsChart = $sheetsChart;
- }
- /**
- * @return SheetsChart
- */
- public function getSheetsChart()
- {
- return $this->sheetsChart;
- }
- /**
- * The size of the page element.
- *
- * @param Size $size
- */
- public function setSize(Size $size)
- {
- $this->size = $size;
- }
- /**
- * @return Size
- */
- public function getSize()
- {
- return $this->size;
- }
- /**
- * A Speaker Spotlight.
- *
- * @param SpeakerSpotlight $speakerSpotlight
- */
- public function setSpeakerSpotlight(SpeakerSpotlight $speakerSpotlight)
- {
- $this->speakerSpotlight = $speakerSpotlight;
- }
- /**
- * @return SpeakerSpotlight
- */
- public function getSpeakerSpotlight()
- {
- return $this->speakerSpotlight;
- }
- /**
- * A table page element.
- *
- * @param Table $table
- */
- public function setTable(Table $table)
- {
- $this->table = $table;
- }
- /**
- * @return Table
- */
- public function getTable()
- {
- return $this->table;
- }
- /**
- * The title of the page element. Combined with description to display alt
- * text. The field is not supported for Group elements.
- *
- * @param string $title
- */
- public function setTitle($title)
- {
- $this->title = $title;
- }
- /**
- * @return string
- */
- public function getTitle()
- {
- return $this->title;
- }
- /**
- * The transform of the page element. The visual appearance of the page
- * element is determined by its absolute transform. To compute the absolute
- * transform, preconcatenate a page element's transform with the transforms of
- * all of its parent groups. If the page element is not in a group, its
- * absolute transform is the same as the value in this field. The initial
- * transform for the newly created Group is always the identity transform.
- *
- * @param AffineTransform $transform
- */
- public function setTransform(AffineTransform $transform)
- {
- $this->transform = $transform;
- }
- /**
- * @return AffineTransform
- */
- public function getTransform()
- {
- return $this->transform;
- }
- /**
- * A video page element.
- *
- * @param Video $video
- */
- public function setVideo(Video $video)
- {
- $this->video = $video;
- }
- /**
- * @return Video
- */
- public function getVideo()
- {
- return $this->video;
- }
- /**
- * A word art page element.
- *
- * @param WordArt $wordArt
- */
- public function setWordArt(WordArt $wordArt)
- {
- $this->wordArt = $wordArt;
- }
- /**
- * @return WordArt
- */
- public function getWordArt()
- {
- return $this->wordArt;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(PageElement::class, 'Google_Service_Slides_PageElement');
|