| 1 | <?php |
||
| 9 | final class Unlink |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | private static $unlinkedPath = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var bool |
||
| 18 | */ |
||
| 19 | private $isOptional = true; |
||
| 20 | |||
| 21 | 12 | public function __invoke(string $path) |
|
| 31 | |||
| 32 | 29 | public function once(string $path) : bool |
|
| 42 | |||
| 43 | 9 | public function force(string $path) : bool |
|
| 50 | } |
||
| 51 |
If you suppress an error, we recommend checking for the error condition explicitly: