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\BooleanInterface;
/**
* The boolean data type.
*
* The plain value of a boolean is a regular PHP boolean. For setting the value
* any PHP variable that casts to a boolean may be passed.
*
* @DataType(
* id = "boolean",
* label = @Translation("Boolean")
* )
*/
class BooleanData extends PrimitiveBase implements BooleanInterface {
/**
* {@inheritdoc}
*/
public function getCastedValue() {
return (bool) $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\BooleanInterface;
/**
* The boolean data type.
*
* The plain value of a boolean is a regular PHP boolean. For setting the value
* any PHP variable that casts to a boolean may be passed.
*
* @DataType(
* id = "boolean",
* label = @Translation("Boolean")
* )
*/
class BooleanData extends PrimitiveBase implements BooleanInterface {
/**
* {@inheritdoc}
*/
public function getCastedValue() {
return (bool) $this->value;
}
}
Function Calls
None |
Stats
MD5 | 9c19c1912df17b19f8a9e72d45ccf346 |
Eval Count | 0 |
Decode Time | 96 ms |