1<?php
2
3
4namespace ComboStrap;
5
6
7class Display
8{
9
10    public const DISPLAY = "display";
11    public const DISPLAY_NONE_VALUE = "none";
12
13    public static function processDisplay(TagAttributes &$tagAttributes)
14    {
15
16        $display = strtolower($tagAttributes->getValueAndRemove(self::DISPLAY));
17        if ($display !== null) {
18            if (strtolower($display) === self::DISPLAY_NONE_VALUE) {
19                $tagAttributes->addStyleDeclarationIfNotSet("display", "none");
20            }
21        }
22
23    }
24}
25