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 declare(strict_types=1); namespace Grav\Framework\Contracts\Media; use Grav\Framew..

Decoded Output download

<?php declare(strict_types=1);

namespace Grav\Framework\Contracts\Media;

use Grav\Framework\Contracts\Object\IdentifierInterface;
use Psr\Http\Message\ResponseInterface;

/**
 * Media Object Interface
 */
interface MediaObjectInterface extends IdentifierInterface
{
    /**
     * Returns true if the object exists.
     *
     * @return bool
     * @phpstan-pure
     */
    public function exists(): bool;

    /**
     * Get metadata associated to the media object.
     *
     * @return array
     * @phpstan-pure
     */
    public function getMeta(): array;

    /**
     * @param string $field
     * @return mixed
     * @phpstan-pure
     */
    public function get(string $field);

    /**
     * Return URL pointing to the media object.
     *
     * @return string
     * @phpstan-pure
     */
    public function getUrl(): string;

    /**
     * Create media response.
     *
     * @param array $actions
     * @return ResponseInterface
     * @phpstan-pure
     */
    public function createResponse(array $actions): ResponseInterface;
}
 ?>

Did this file decode correctly?

Original Code

<?php declare(strict_types=1);

namespace Grav\Framework\Contracts\Media;

use Grav\Framework\Contracts\Object\IdentifierInterface;
use Psr\Http\Message\ResponseInterface;

/**
 * Media Object Interface
 */
interface MediaObjectInterface extends IdentifierInterface
{
    /**
     * Returns true if the object exists.
     *
     * @return bool
     * @phpstan-pure
     */
    public function exists(): bool;

    /**
     * Get metadata associated to the media object.
     *
     * @return array
     * @phpstan-pure
     */
    public function getMeta(): array;

    /**
     * @param string $field
     * @return mixed
     * @phpstan-pure
     */
    public function get(string $field);

    /**
     * Return URL pointing to the media object.
     *
     * @return string
     * @phpstan-pure
     */
    public function getUrl(): string;

    /**
     * Create media response.
     *
     * @param array $actions
     * @return ResponseInterface
     * @phpstan-pure
     */
    public function createResponse(array $actions): ResponseInterface;
}

Function Calls

None

Variables

None

Stats

MD5 d1ef8126297150a91e141c9b728c5c4a
Eval Count 0
Decode Time 112 ms