| Total Complexity | 6 |
| Total Lines | 70 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | trait IOConfigurationOptionTrait |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var boolean |
||
| 19 | */ |
||
| 20 | protected $secureFileManipulation = false; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $htaccess = true; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $securityKey = ''; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getSecurityKey(): string |
||
| 36 | { |
||
| 37 | return $this->securityKey; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $securityKey |
||
| 42 | * @return Config |
||
| 43 | */ |
||
| 44 | public function setSecurityKey(string $securityKey): self |
||
| 45 | { |
||
| 46 | $this->securityKey = $securityKey; |
||
| 47 | |||
| 48 | return $this; |
||
|
|
|||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return bool |
||
| 53 | */ |
||
| 54 | public function getHtaccess(): bool |
||
| 55 | { |
||
| 56 | return $this->htaccess; |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param bool $htaccess |
||
| 61 | * @return Config |
||
| 62 | */ |
||
| 63 | public function setHtaccess(bool $htaccess): self |
||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return bool |
||
| 71 | */ |
||
| 72 | public function isSecureFileManipulation(): bool |
||
| 73 | { |
||
| 74 | return $this->secureFileManipulation; |
||
| 75 | } |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @param bool $secureFileManipulation |
||
| 79 | * @return self |
||
| 80 | */ |
||
| 81 | public function setSecureFileManipulation(bool $secureFileManipulation): self |
||
| 85 | } |
||
| 86 | } |