DocParser::$typeMap

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::typeMap
  2. 10 core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::typeMap
  3. 11.x core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::typeMap

Hash-map for handle types declaration.

Type: array

File

core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php, line 227

Class

DocParser
A parser for docblock annotations.

Namespace

Drupal\Component\Annotation\Doctrine

Code

private static $typeMap = array(
    'float' => 'double',
    'bool' => 'boolean',
    // allow uppercase Boolean in honor of George Boole
'Boolean' => 'boolean',
    'int' => 'integer',
);

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