$role
$role :
An Apple News Document Video.
getLayout() : \ChapterThree\AppleNewsAPI\Document\Layouts\ComponentLayout|string
Getter for layout.
Layout object or string reference
setLayout(\ChapterThree\AppleNewsAPI\Document\Layouts\ComponentLayout|string $layout, \ChapterThree\AppleNewsAPI\Document|NULL $document = NULL) : $this
Setter for layout.
\ChapterThree\AppleNewsAPI\Document\Layouts\ComponentLayout|string | $layout | Either a ComponentLayout object, or a string reference to one defined in $document. |
\ChapterThree\AppleNewsAPI\Document|NULL | $document | If required by first parameter. |
setStyle(\ChapterThree\AppleNewsAPI\Document\Styles\ComponentStyle|string $style, \ChapterThree\AppleNewsAPI\Document|NULL $document = NULL) : $this
Setter for style.
\ChapterThree\AppleNewsAPI\Document\Styles\ComponentStyle|string | $style | Either a ComponentStyle object, or a string reference to one defined in $document. |
\ChapterThree\AppleNewsAPI\Document|NULL | $document | If required by first parameter. |
setAnchor(\ChapterThree\AppleNewsAPI\Document\Anchor $anchor) : $this
Setter for anchor.
\ChapterThree\AppleNewsAPI\Document\Anchor | $anchor | Anchor. |
setAnimation(\ChapterThree\AppleNewsAPI\Document\Animations\ComponentAnimations\ComponentAnimation $animation) : $this
Setter for animation.
\ChapterThree\AppleNewsAPI\Document\Animations\ComponentAnimations\ComponentAnimation | $animation | Animation. |
setBehavior(\ChapterThree\AppleNewsAPI\Document\Behaviors\Behavior $behavior) : $this
Setter for behavior.
\ChapterThree\AppleNewsAPI\Document\Behaviors\Behavior | $behavior | Behavior. |
isUnitInterval(float|integer $value) : boolean
Helper function to determine if a value is a unit interval.
A unit interval is the closed interval [0,1], that is, the set of all real numbers that are greater than or equal to 0 and less than or equal to 1.
float|integer | $value | Value. |
Result.