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 Drupal\Core\TempStore; /** * Provides a value object representing the l..

Decoded Output download

<?php

namespace Drupal\Core\TempStore;

/**
 * Provides a value object representing the lock from a TempStore.
 */
final class Lock {

  /**
   * The owner ID.
   *
   * @var int
   */
  private $ownerId;

  /**
   * The timestamp the lock was last updated.
   *
   * @var int
   */
  private $updated;

  /**
   * Constructs a new Lock object.
   *
   * @param int $owner_id
   *   The owner ID.
   * @param int $updated
   *   The updated timestamp.
   */
  public function __construct($owner_id, $updated) {
    $this->ownerId = $owner_id;
    $this->updated = $updated;
  }

  /**
   * Gets the owner ID.
   *
   * @return int
   *   The owner ID.
   */
  public function getOwnerId() {
    return $this->ownerId;
  }

  /**
   * Gets the timestamp of the last update to the lock.
   *
   * @return int
   *   The updated timestamp.
   */
  public function getUpdated() {
    return $this->updated;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Drupal\Core\TempStore;

/**
 * Provides a value object representing the lock from a TempStore.
 */
final class Lock {

  /**
   * The owner ID.
   *
   * @var int
   */
  private $ownerId;

  /**
   * The timestamp the lock was last updated.
   *
   * @var int
   */
  private $updated;

  /**
   * Constructs a new Lock object.
   *
   * @param int $owner_id
   *   The owner ID.
   * @param int $updated
   *   The updated timestamp.
   */
  public function __construct($owner_id, $updated) {
    $this->ownerId = $owner_id;
    $this->updated = $updated;
  }

  /**
   * Gets the owner ID.
   *
   * @return int
   *   The owner ID.
   */
  public function getOwnerId() {
    return $this->ownerId;
  }

  /**
   * Gets the timestamp of the last update to the lock.
   *
   * @return int
   *   The updated timestamp.
   */
  public function getUpdated() {
    return $this->updated;
  }

}

Function Calls

None

Variables

None

Stats

MD5 a654c0e946974d480eb748d41319c16d
Eval Count 0
Decode Time 83 ms