public static function normalizeDataType($type) { return strtr($type, ['long' => 'int', 'short' => 'int', 'dateTime' => '\\DateTime', 'date' => '\\DateTime', 'boolean' => 'bool']); }
/** * Property constructor. * * @param string $name * @param string $type */ public function __construct($name, $type) { $this->name = Normalizer::normalizeProperty($name); $this->type = Normalizer::normalizeDataType($type); }