Integer.php 640 Bytes
Newer Older
1 2 3 4
<?php

/**
 * @file
5
 * Contains \Drupal\Core\TypedData\Plugin\DataType\Integer.
6 7
 */

8
namespace Drupal\Core\TypedData\Plugin\DataType;
9

10 11
use Drupal\Core\TypedData\Annotation\DataType;
use Drupal\Core\Annotation\Translation;
12 13
use Drupal\Core\TypedData\PrimitiveBase;
use Drupal\Core\TypedData\Type\IntegerInterface;
14 15 16 17 18 19

/**
 * 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.
20 21 22
 *
 * @DataType(
 *   id = "integer",
23
 *   label = @Translation("Integer")
24
 * )
25
 */
26
class Integer extends PrimitiveBase implements IntegerInterface {
27 28

}