1 | <?php |
||
7 | class ComDriver implements ISizeDriver |
||
8 | { |
||
9 | public function __construct() |
||
15 | |||
16 | /** |
||
17 | * Returns file size by using Windows COM interface |
||
18 | * @inheritdoc |
||
19 | * @link http://stackoverflow.com/questions/5501451/php-x86-how-to-get-filesize-of-2gb-file-without-external-program/5502328#5502328 |
||
20 | */ |
||
21 | public function getFileSize($path) |
||
30 | } |
||
31 |
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: