$version
$version :
An Apple News Document.
__construct(mixed $identifier, mixed $title, mixed $language, \ChapterThree\AppleNewsAPI\Document\Layouts\Layout $layout)
Implements __construct().
mixed | $identifier | Identifier. |
mixed | $title | Title. |
mixed | $language | Language. |
\ChapterThree\AppleNewsAPI\Document\Layouts\Layout | $layout | Layout. |
getLayout() : \ChapterThree\AppleNewsAPI\Document\Layouts\Layout
Getter for layout.
setLayout(\ChapterThree\AppleNewsAPI\Document\Layouts\Layout $layout) : $this
Setter for layout.
\ChapterThree\AppleNewsAPI\Document\Layouts\Layout | $layout | Layout. |
addComponent(\ChapterThree\AppleNewsAPI\Document\Components\Component $component) : $this
Setter for components.
\ChapterThree\AppleNewsAPI\Document\Components\Component | $component | Component. |
addComponentTextStyle(mixed $name, \ChapterThree\AppleNewsAPI\Document\Styles\ComponentTextStyle $component_text_style) : $this
Setter for componentTextStyles.
mixed | $name | Name. |
\ChapterThree\AppleNewsAPI\Document\Styles\ComponentTextStyle | $component_text_style | ComponentTextStyle. |
setMetadata(\ChapterThree\AppleNewsAPI\Document\Metadata $metadata) : $this
Setter for metadata.
\ChapterThree\AppleNewsAPI\Document\Metadata | $metadata | Metadata. |
setDocumentStyle(\ChapterThree\AppleNewsAPI\Document\Styles\DocumentStyle $document_style) : $this
Setter for documentStyle.
\ChapterThree\AppleNewsAPI\Document\Styles\DocumentStyle | $document_style | DocumentStyle. |
addTextStyle(mixed $name, \ChapterThree\AppleNewsAPI\Document\Styles\TextStyle $text_style) : $this
Setter for textStyles.
mixed | $name | Name. |
\ChapterThree\AppleNewsAPI\Document\Styles\TextStyle | $text_style | TextStyle. |
addComponentStyle(mixed $name, \ChapterThree\AppleNewsAPI\Document\Styles\ComponentStyle $component_style) : $this
Setter for componentStyles.
mixed | $name | Name. |
\ChapterThree\AppleNewsAPI\Document\Styles\ComponentStyle | $component_style | ComponentStyle. |
addComponentLayout(mixed $name, \ChapterThree\AppleNewsAPI\Document\Layouts\ComponentLayout $component_layout) : $this
Setter for componentLayouts.
mixed | $name | Name. |
\ChapterThree\AppleNewsAPI\Document\Layouts\ComponentLayout | $component_layout | ComponentLayout. |
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.