public static function decodeFromFile($path)
    {
        if (!file_exists($path)) {
            throw new \RuntimeException("File $path does not exist");
        }

        $buffer = file_get_contents($path);
        $object = self::decode($buffer);

        return $object;
    }
public static function decodeFromFile($path)
    {
        if (!file_exists($path)) {
            throw new \RuntimeException("File $path does not exist");
        }

        $buffer = file_get_contents($path);
        $object = self::decode($buffer);

        return $object;
    }
public static function decodeFromFile ( $ path ) { if ( ! file_exists ( $ path ) ) { throw new \ RuntimeException ( "File $path does not exist" ) ; } $ buffer = file_get_contents ( $ path ) ; $ object = self :: decode ( $ buffer ) ; return $ object ; }
Handles the deserialization of the Bencode representation of an object from a file.

@param string $path Path of the file.
@return mixed
Handles the deserialization of the Bencode representation of an object from a file .