for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* Background class.
*
* @package YetiForcePDF\Style\Normalizer
* @copyright YetiForce Sp. z o.o
* @license MIT
* @author Rafal Pospiech <[email protected]>
*/
namespace YetiForcePDF\Style\Normalizer;
* Class Background.
class Background extends Normalizer
{
public function normalize($ruleValue, string $ruleName = ''): array
$normalizerName = \YetiForcePDF\Style\Normalizer\Normalizer::getNormalizerClassName('background-color');
return (new $normalizerName())
->setDocument($this->document)
->setStyle($this->style)
->init()
->normalize($ruleValue, $ruleName);
}