for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace nstdio\svg\gradient;
use nstdio\svg\ElementInterface;
use nstdio\svg\SVGElement;
use nstdio\svg\util\Identifier;
/**
* Class Gradient
*
* @package nstdio\svg\gradient
* @author Edgar Asatryan <[email protected]>
*/
abstract class Gradient extends SVGElement
{
const LINEAR = 'linear';
const RADIAL = 'radial';
public function __construct(ElementInterface $parent, $id = null)
$defs = self::getDefs($parent);
parent::__construct($defs);
$this->id = $id === null ? Identifier::random('__gradient', 4) : $id;
}
* @param Stop|Stop[] $stops
public function appendStop(Stop $stops)
$stops
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$stops = func_get_args();
foreach ($stops as $stop) {
$this->append($stop);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.