| Total Complexity | 4 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | trait Disclosure |
||
| 25 | { |
||
| 26 | |||
| 27 | /** |
||
| 28 | * The disclosure policy. |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | protected $disclosure = null; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Set the disclosure policy. |
||
| 36 | * |
||
| 37 | * @param string $disclosure |
||
| 38 | * |
||
| 39 | * @return \AustinHeap\Security\Txt\SecurityTxt |
||
| 40 | */ |
||
| 41 | public function setDisclosure(string $disclosure): SecurityTxt |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get the disclosure policy. |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function getDisclosure(): string |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Determines if disclosure is valid. |
||
| 64 | * |
||
| 65 | * @param string $disclosure |
||
| 66 | * |
||
| 67 | * @return bool |
||
| 68 | */ |
||
| 69 | public function validDisclosure(string $disclosure): bool |
||
| 75 |