| Total Complexity | 6 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Display extends StyleContainer |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | public function getName() : string |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Sets a custom display value, e.g. "flex", "list-item"... |
||
| 22 | * |
||
| 23 | * @param string $value |
||
| 24 | * @param bool $important |
||
| 25 | * @return StyleBuilder |
||
| 26 | */ |
||
| 27 | public function custom(string $value, bool $important=false) : StyleBuilder |
||
| 28 | { |
||
| 29 | return $this->setStyle($value, $important); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function block(bool $important=false) : StyleBuilder |
||
| 33 | { |
||
| 34 | return $this->setStyle('block', $important); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function none(bool $important=false) : StyleBuilder |
||
| 38 | { |
||
| 39 | return $this->setStyle('none', $important); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function inline(bool $important=false) : StyleBuilder |
||
| 43 | { |
||
| 44 | return $this->setStyle('inline', $important); |
||
| 45 | } |
||
| 46 | |||
| 47 | public function inlineBlock(bool $important=false) : StyleBuilder |
||
| 50 | } |
||
| 51 | } |
||
| 52 |