Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /** @phpstub */ class MongoGridFSFile { /** @var array */ public $file; ..

Decoded Output download

<?php

/** @phpstub */
class MongoGridFSFile
{
    /** @var array */
    public $file;

    /** @var MongoGridFS */
    protected $gridfs;

    /**
     * Create a new GridFS file
     *
     * @param MongoGridFS $gridfs
     * @param array $file
     */
    public function __construct($gridfs, $file)
    {
    }

    /**
     * Returns this fileaposs contents as a string of bytes
     *
     * @return string Returns a string of the bytes in the file.
     */
    public function getBytes()
    {
    }

    /**
     * Returns this fileaposs filename
     *
     * @return string Returns the filename.
     */
    public function getFilename()
    {
    }

    /**
     * Returns a resource that can be used to read the stored file
     *
     * @return stream Returns a resource that can be used to read the file with
     */
    public function getResource()
    {
    }

    /**
     * Returns this fileaposs size
     *
     * @return int Returns this file's size
     */
    public function getSize()
    {
    }

    /**
     * Writes this file to the filesystem
     *
     * @param string $filename
     *
     * @return int Returns the number of bytes written.
     */
    public function write($filename = NULL)
    {
    }
} ?>

Did this file decode correctly?

Original Code

<?php

/** @phpstub */
class MongoGridFSFile
{
    /** @var array */
    public $file;

    /** @var MongoGridFS */
    protected $gridfs;

    /**
     * Create a new GridFS file
     *
     * @param MongoGridFS $gridfs
     * @param array $file
     */
    public function __construct($gridfs, $file)
    {
    }

    /**
     * Returns this fileaposs contents as a string of bytes
     *
     * @return string Returns a string of the bytes in the file.
     */
    public function getBytes()
    {
    }

    /**
     * Returns this fileaposs filename
     *
     * @return string Returns the filename.
     */
    public function getFilename()
    {
    }

    /**
     * Returns a resource that can be used to read the stored file
     *
     * @return stream Returns a resource that can be used to read the file with
     */
    public function getResource()
    {
    }

    /**
     * Returns this fileaposs size
     *
     * @return int Returns this file's size
     */
    public function getSize()
    {
    }

    /**
     * Writes this file to the filesystem
     *
     * @param string $filename
     *
     * @return int Returns the number of bytes written.
     */
    public function write($filename = NULL)
    {
    }
}

Function Calls

None

Variables

None

Stats

MD5 15f0d7a9604caaf7c2bed8e88c97d3e2
Eval Count 0
Decode Time 99 ms