public static function createFromArray($name, array $data = [])
    {
        $type = parent::createFromArray($name, $data);
        \assert($type instanceof self);
        if (!$type->getFormat()) {
            $type->setFormat('int');
        }

        return $type;
    }
public static function createFromArray($name, array $data = [])
    {
        $type = parent::createFromArray($name, $data);
        \assert($type instanceof self);
        if (!$type->getFormat()) {
            $type->setFormat('int');
        }

        return $type;
    }
public static function createFromArray ( $ name , array $ data = [ ] ) { $ type = parent :: createFromArray ( $ name , $ data ) ; \ assert ( $ type instanceof self ) ; if ( ! $ type -> getFormat ( ) ) { $ type -> setFormat ( 'int' ) ; } return $ type ; }
Create a new IntegerType from an array of data

@param string    $name

@return IntegerType
Create a new IntegerType from an array of data