src/DivideIQ.php
public static function fromFile(\SplFileObject $file)
    {
        $file->rewind();
        $object = static::fromJson($file->fread($file->getSize()));
        $object->file = $file;

        return $object;
    }
public static function fromFile(\SplFileObject $file)
    {
        $file->rewind();
        $object = static::fromJson($file->fread($file->getSize()));
        $object->file = $file;

        return $object;
    }
public static function fromFile ( \ SplFileObject $ file ) { $ file -> rewind ( ) ; $ object = static :: fromJson ( $ file -> fread ( $ file -> getSize ( ) ) ) ; $ object -> file = $ file ; return $ object ; }
Unserializes the object from JSON contained in the given file.

@param \SplFileObject $file
The file to be read from. Since it may also be written to, it should
be opened with mode `c+`.

@return DivideIQ
The unserialized object.
Unserializes the object from JSON contained in the given file .