public function size():int
    {
        if ($this->file == null) {
            throw new Server500(new \ArrayObject(array("explain" =>
                "Cannot get size for unopened file",
                "solution" =>
                    "Please open the file with [FileListener::open] before trying to get the size.")));
        }
        return (filesize($this->filepath));
    }
public function size():int
    {
        if ($this->file == null) {
            throw new Server500(new \ArrayObject(array("explain" =>
                "Cannot get size for unopened file",
                "solution" =>
                    "Please open the file with [FileListener::open] before trying to get the size.")));
        }
        return (filesize($this->filepath));
    }
public function size ( ) : int { if ( $ this -> file == null ) { throw new Server500 ( new \ ArrayObject ( array ( "explain" => "Cannot get size for unopened file" , "solution" => "Please open the file with [FileListener::open] before trying to get the size." ) ) ) ; } return ( filesize ( $ this -> filepath ) ) ; }
Getting the file size
@return int The file size
@throws Server500 If file was not opened before trying to get the file size
Getting the file size