| Total Complexity | 8 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class FontSize extends StyleContainer |
||
| 11 | { |
||
| 12 | protected function getName() : string |
||
| 15 | } |
||
| 16 | |||
| 17 | public function relativeLarger(bool $important=false) : StyleBuilder |
||
| 18 | { |
||
| 19 | return $this->setStyle('larger', $important); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function relativeSmaller(bool $important=false) : StyleBuilder |
||
| 23 | { |
||
| 24 | return $this->setStyle('smaller', $important); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function custom(string $value, bool $important=false) : StyleBuilder |
||
| 30 | } |
||
| 31 | |||
| 32 | public function percent(float $percent, bool $important=false) : StyleBuilder |
||
| 33 | { |
||
| 34 | return $this->setStylePercent($percent, $important); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function px(int $pixels, bool $important=false) : StyleBuilder |
||
| 38 | { |
||
| 39 | return $this->setStylePX($pixels, $important); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function em(float $em, bool $important=false) : StyleBuilder |
||
| 43 | { |
||
| 44 | return $this->setStyleEM($em, $important); |
||
| 45 | } |
||
| 46 | |||
| 47 | public function rem(float $rem, bool $important=false) : StyleBuilder |
||
| 50 | } |
||
| 51 | } |
||
| 52 |