/** * {@inheritdoc} */ public function __construct($type) { parent::__construct($type); }
/** * Implements __construct(). * * @param string $type * The type of gradient; e.g., linear_gradient. * @param array|\ChapterThree\AppleNewsAPI\Document\Styles\Fills\Gradients\ColorStop $color_stops * URL. */ public function __construct($type, array $color_stops) { parent::__construct($type); $this->setColorStops($color_stops); }