| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 64 | public function __construct( |
||
| 65 | int $delay = 0, |
||
| 66 | int $memory = 128, |
||
| 67 | int $timeout = 60, |
||
| 68 | int $sleep = 3, |
||
| 69 | int $maxTries = 0, |
||
| 70 | bool $force = false |
||
| 71 | ) { |
||
| 72 | $this->delay = $delay; |
||
| 73 | $this->sleep = $sleep; |
||
| 74 | $this->force = $force; |
||
| 75 | $this->memory = $memory; |
||
| 76 | $this->timeout = $timeout; |
||
| 77 | $this->maxTries = $maxTries; |
||
| 78 | } |
||
| 79 | |||
| 115 |
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: