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\Session; /** * Defines the calculated permissions item inte..

Decoded Output download

<?php

namespace Drupal\Core\Session;

/**
 * Defines the calculated permissions item interface.
 */
interface CalculatedPermissionsItemInterface {

  /**
   * Returns the scope of the calculated permissions item.
   *
   * @return string
   *   The scope name.
   */
  public function getScope(): string;

  /**
   * Returns the identifier within the scope.
   *
   * @return string|int
   *   The identifier.
   */
  public function getIdentifier(): string|int;

  /**
   * Returns the permissions for the calculated permissions item.
   *
   * @return string[]
   *   The permission names.
   */
  public function getPermissions(): array;

  /**
   * Returns whether this item grants admin privileges in its scope.
   *
   * @return bool
   *   Whether this item grants admin privileges.
   */
  public function isAdmin(): bool;

  /**
   * Returns whether this item has a given permission.
   *
   * @param string $permission
   *   The permission name.
   *
   * @return bool
   *   Whether this item has the permission.
   */
  public function hasPermission(string $permission): bool;

}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Drupal\Core\Session;

/**
 * Defines the calculated permissions item interface.
 */
interface CalculatedPermissionsItemInterface {

  /**
   * Returns the scope of the calculated permissions item.
   *
   * @return string
   *   The scope name.
   */
  public function getScope(): string;

  /**
   * Returns the identifier within the scope.
   *
   * @return string|int
   *   The identifier.
   */
  public function getIdentifier(): string|int;

  /**
   * Returns the permissions for the calculated permissions item.
   *
   * @return string[]
   *   The permission names.
   */
  public function getPermissions(): array;

  /**
   * Returns whether this item grants admin privileges in its scope.
   *
   * @return bool
   *   Whether this item grants admin privileges.
   */
  public function isAdmin(): bool;

  /**
   * Returns whether this item has a given permission.
   *
   * @param string $permission
   *   The permission name.
   *
   * @return bool
   *   Whether this item has the permission.
   */
  public function hasPermission(string $permission): bool;

}

Function Calls

None

Variables

None

Stats

MD5 f6c188b0a04df851b39a6b0ff61be1ff
Eval Count 0
Decode Time 93 ms