interface DecimalInterface

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/TypedData/Type/DecimalInterface.php \Drupal\Core\TypedData\Type\DecimalInterface

Interface for decimal numbers.

The plain value of a decimal is a PHP string. For setting the value any PHP variable that casts to an numeric string may be passed.

Hierarchy

Expanded class hierarchy of DecimalInterface

All classes that implement DecimalInterface

Related topics

3 files declare their use of DecimalInterface
DecimalData.php in core/lib/Drupal/Core/TypedData/Plugin/DataType/DecimalData.php
PrimitiveTypeConstraintValidator.php in core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php
TypedDataTest.php in core/tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php

File

core/lib/Drupal/Core/TypedData/Type/DecimalInterface.php, line 15

Namespace

Drupal\Core\TypedData\Type
View source
interface DecimalInterface extends PrimitiveInterface {

}

Members

Title Sort descending Modifiers Object type Summary Overrides
PrimitiveInterface::getCastedValue public function Gets the primitive data value casted to the correct PHP type. 5
PrimitiveInterface::getValue public function Gets the primitive data value.
PrimitiveInterface::setValue public function Sets the primitive data value.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.