| 1 | <?php |
||
| 5 | class File |
||
| 6 | { |
||
| 7 | protected $disk; |
||
| 8 | |||
| 9 | protected $path; |
||
| 10 | |||
| 11 | public function __construct(Disk $disk, string $path) |
||
| 16 | |||
| 17 | public function getDisk(): Disk |
||
| 21 | |||
| 22 | public function getPath(): string |
||
| 26 | |||
| 27 | public function getFullPath(): string |
||
| 31 | |||
| 32 | public function createFromTempPath(string $path): bool |
||
| 36 | } |
||
| 37 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: