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 namespace AsyncAws\S3\ValueObject; /** * Container for all (if there are any) key..

Decoded Output download

<?php

namespace AsyncAws\S3\ValueObject;

/**
 * Container for all (if there are any) keys between Prefix and the next occurrence of the string specified by a
 * delimiter. CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix. For example,
 * if the prefix is notes/ and the delimiter is a slash (/) as in notes/summer/july, the common prefix is notes/summer/.
 */
final class CommonPrefix
{
    /**
     * Container for the specified common prefix.
     *
     * @var string|null
     */
    private $prefix;

    /**
     * @param array{
     *   Prefix?: null|string,
     * } $input
     */
    public function __construct(array $input)
    {
        $this->prefix = $input['Prefix'] ?? null;
    }

    /**
     * @param array{
     *   Prefix?: null|string,
     * }|CommonPrefix $input
     */
    public static function create($input): self
    {
        return $input instanceof self ? $input : new self($input);
    }

    public function getPrefix(): ?string
    {
        return $this->prefix;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace AsyncAws\S3\ValueObject;

/**
 * Container for all (if there are any) keys between Prefix and the next occurrence of the string specified by a
 * delimiter. CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix. For example,
 * if the prefix is notes/ and the delimiter is a slash (/) as in notes/summer/july, the common prefix is notes/summer/.
 */
final class CommonPrefix
{
    /**
     * Container for the specified common prefix.
     *
     * @var string|null
     */
    private $prefix;

    /**
     * @param array{
     *   Prefix?: null|string,
     * } $input
     */
    public function __construct(array $input)
    {
        $this->prefix = $input['Prefix'] ?? null;
    }

    /**
     * @param array{
     *   Prefix?: null|string,
     * }|CommonPrefix $input
     */
    public static function create($input): self
    {
        return $input instanceof self ? $input : new self($input);
    }

    public function getPrefix(): ?string
    {
        return $this->prefix;
    }
}

Function Calls

None

Variables

None

Stats

MD5 c5e6eff91b4e557ecf8c03a53b17a0e2
Eval Count 0
Decode Time 92 ms