19 declare(strict_types=1);
57 string $category_name,
58 array $references = []
72 public function setName(
string $name): void
84 if ($this->
getName() ==
'il-icon-font-path') {
85 if ($value[0] !=
"\"") {
88 if (substr($value, -1, 1) !=
"\"") {
93 $value = str_replace(PHP_EOL,
'', $value);
94 $this->value = str_replace(
"\n",
'', $value);
104 $comment = str_replace(PHP_EOL,
'', $comment);
105 $this->
comment = str_replace(
"\n",
'', $comment);
133 return '$' . $this->
getName() .
": globals.$" . $this->
getName() .
",\n";
144 $content .=
'//** ' . $this->
getComment() .
"\n";
array $references
Set references to other variables that are used by this exact variable.
Abstracts content of a scss file.
getForDelosOverride()
This function will be needed for the main scss file to override the defaults for delos.
__construct(string $name, string $value, string $comment, string $category_name, array $references=[])
string $category_name
Scss Category which encloses this variable.
setReferences(array $references)
string $value
Value of the variable as set in the Scss file.
string $name
Name of the variable.
__toString()
This function will be needed to write the variable back to the Scss file and restore it's initial str...
setCategoryName(string $category_name)
setComment(string $comment)
string $comment
Comment to the variable as in the Scss file.