$type
$type :
An Apple News Document GradientFill.
__construct(string $type, array|\ChapterThree\AppleNewsAPI\Document\Styles\Fills\Gradients\ColorStop $color_stops)
Implements __construct().
string | $type | The type of gradient; e.g., linear_gradient. |
array|\ChapterThree\AppleNewsAPI\Document\Styles\Fills\Gradients\ColorStop | $color_stops | URL. |
setColorStops(array|\ChapterThree\AppleNewsAPI\Document\Styles\Fills\Gradients\ColorStop $items) : $this
Setter for url.
array|\ChapterThree\AppleNewsAPI\Document\Styles\Fills\Gradients\ColorStop | $items | An array of color stops. Each stop sets a color and percentage. |
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.