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\TypedData\Plugin\DataType; use Drupal\Core\TypedData\Primiti..
Decoded Output download
<?php
namespace Drupal\Core\TypedData\Plugin\DataType;
use Drupal\Core\TypedData\PrimitiveBase;
use Drupal\Core\TypedData\Type\IntegerInterface;
/**
* The integer data type.
*
* The plain value of an integer is a regular PHP integer. For setting the value
* any PHP variable that casts to an integer may be passed.
*
* @DataType(
* id = "integer",
* label = @Translation("Integer")
* )
*/
class IntegerData extends PrimitiveBase implements IntegerInterface {
/**
* {@inheritdoc}
*/
public function getCastedValue() {
return (int) $this->value;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Drupal\Core\TypedData\Plugin\DataType;
use Drupal\Core\TypedData\PrimitiveBase;
use Drupal\Core\TypedData\Type\IntegerInterface;
/**
* The integer data type.
*
* The plain value of an integer is a regular PHP integer. For setting the value
* any PHP variable that casts to an integer may be passed.
*
* @DataType(
* id = "integer",
* label = @Translation("Integer")
* )
*/
class IntegerData extends PrimitiveBase implements IntegerInterface {
/**
* {@inheritdoc}
*/
public function getCastedValue() {
return (int) $this->value;
}
}
Function Calls
None |
Stats
MD5 | 68484d144dc2774c51877283b80ebf7e |
Eval Count | 0 |
Decode Time | 84 ms |