| 1 | <?php |
||
| 23 | class ModSecurity implements FirewallInterface |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * returns the name of the firewall. |
||
| 27 | * |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public function getName() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * detects whether the provided headers and body string does match the firewall identification rules or not. |
||
| 37 | * |
||
| 38 | * @param string[] $headers |
||
| 39 | * @param string $bodyString |
||
| 40 | * @param string $url |
||
| 41 | * |
||
| 42 | * @return bool |
||
| 43 | */ |
||
| 44 | public function detect(array $headers, $bodyString, $url) |
||
| 54 | } |
||
| 55 |
It is generally a best practice as it is often more readable to use concatenation instead of interpolation for variables inside strings.