Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function __construct(LogProfile $logProfile, LogWriter $logWriter, logResponseProfile $logResponseProfile, logResponseWriter $logResponseWriter) |
||
19 | { |
||
20 | $this->logProfile = $logProfile; |
||
21 | $this->logWriter = $logWriter; |
||
22 | $this->logResponseProfile = $logResponseProfile; |
||
|
|||
23 | $this->logResponseWriter = $logResponseWriter; |
||
24 | } |
||
25 | |||
42 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: