| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 83.33% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 12 | final class XFrameOptionsHeaderResult extends AbstractParsedHeader |
||
| 13 | { |
||
| 14 | private $hasSecureOrigin = false; |
||
| 15 | private $hasAllowFrom = false; |
||
| 16 | |||
| 17 | public function isSecure(): bool |
||
| 18 | { |
||
| 19 | return $this->getHasSecureOrigin() || $this->hasAllowFrom(); |
||
| 20 | } |
||
| 21 | |||
| 22 | 6 | public function getHasSecureOrigin(): bool |
|
| 25 | } |
||
| 26 | |||
| 27 | 8 | public function setHasSecureOrigin(bool $hasSecureOrigin): self |
|
| 28 | { |
||
| 29 | 8 | $this->hasSecureOrigin = $hasSecureOrigin; |
|
| 30 | |||
| 31 | 8 | return $this; |
|
| 32 | } |
||
| 33 | |||
| 34 | 2 | public function hasAllowFrom(): bool |
|
| 35 | { |
||
| 36 | 2 | return $this->hasAllowFrom; |
|
| 37 | } |
||
| 38 | |||
| 39 | 8 | public function setHasAllowFrom(bool $hasAllowFrom): self |
|
| 44 | } |
||
| 45 | } |
||
| 46 |