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 Illuminate\Queue\Events; class JobRetryRequested { /** * The jo..

Decoded Output download

<?php

namespace Illuminate\Queue\Events;

class JobRetryRequested
{
    /**
     * The job instance.
     *
     * @var \stdClass
     */
    public $job;

    /**
     * The decoded job payload.
     *
     * @var array|null
     */
    protected $payload = null;

    /**
     * Create a new event instance.
     *
     * @param  \stdClass  $job
     * @return void
     */
    public function __construct($job)
    {
        $this->job = $job;
    }

    /**
     * The job payload.
     *
     * @return array
     */
    public function payload()
    {
        if (is_null($this->payload)) {
            $this->payload = json_decode($this->job->payload, true);
        }

        return $this->payload;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Illuminate\Queue\Events;

class JobRetryRequested
{
    /**
     * The job instance.
     *
     * @var \stdClass
     */
    public $job;

    /**
     * The decoded job payload.
     *
     * @var array|null
     */
    protected $payload = null;

    /**
     * Create a new event instance.
     *
     * @param  \stdClass  $job
     * @return void
     */
    public function __construct($job)
    {
        $this->job = $job;
    }

    /**
     * The job payload.
     *
     * @return array
     */
    public function payload()
    {
        if (is_null($this->payload)) {
            $this->payload = json_decode($this->job->payload, true);
        }

        return $this->payload;
    }
}

Function Calls

None

Variables

None

Stats

MD5 cf3535e117d04a8684e06aa674f20f61
Eval Count 0
Decode Time 108 ms