/** * Constructor. * * @param File $file */ function __construct(File $file) { $this->size = filesize($file->withPath()); }