| 1 | <?php |
||
| 14 | abstract class Gradient extends SVGElement |
||
| 15 | { |
||
| 16 | const LINEAR = 'linear'; |
||
| 17 | |||
| 18 | const RADIAL = 'radial'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Gradient constructor. |
||
| 22 | * |
||
| 23 | * @param ElementInterface $parent |
||
| 24 | * @param null|string $id |
||
| 25 | */ |
||
| 26 | 38 | public function __construct(ElementInterface $parent, $id = null) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Multiply argument can be passed. |
||
| 36 | * |
||
| 37 | * @param Stop $stop |
||
| 38 | */ |
||
| 39 | 36 | public function appendStop(Stop $stop) |
|
| 46 | } |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: