lib/Style/Normalizer/PaddingLeft.php
<?php
declare(strict_types=1);
/**
* PaddingLeft class.
*
* @package YetiForcePDF\Style\Normalizer
*
* @copyright YetiForce Sp. z o.o
* @license MIT
* @author Rafal Pospiech <r.pospiech@yetiforce.com>
*/
namespace YetiForcePDF\Style\Normalizer;
/**
* Class PaddingLeft.
*/
class PaddingLeft extends Normalizer
{
public function normalize($ruleValue, string $ruleName = ''): array
{
if (null === $this->normalized) {
return $this->normalized = ['padding-left' => $this->getNumberValues($ruleValue)[0]];
}
return $this->normalized;
}
}