Debian Codegraph @

vendor/sabberworm/php-css-parser/src/Value/CalcRuleValueList.php

raw
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Sabberworm\CSS\Value;
6
7 use Sabberworm\CSS\OutputFormat;
8
9 class CalcRuleValueList extends RuleValueList
10 {
11 /**
12 * @param int<1, max>|null $lineNumber
13 */
14 public function __construct(?int $lineNumber = null)
15 {
16 parent::__construct(',', $lineNumber);
17 }
18
19 public function render(OutputFormat $outputFormat): string
20 {
21 return $outputFormat->getFormatter()->implode(' ', $this->components);
22 }
23
24 /**
25 * @return array<string, bool|int|float|string|array<mixed>|null>
26 *
27 * @internal
28 */
29 public function getArrayRepresentation(): array
30 {
31 throw new \BadMethodCallException('`getArrayRepresentation` is not yet implemented for `' . self::class . '`');
32 }
33 }