<?php

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 *
 * @package thrift
 */

declare(strict_types=1);

namespace Thrift\Type;

/**
 * Data types that can be sent via Thrift
 */
class TType
{
    public const STOP   = 0;
    public const VOID   = 1;
    public const BOOL   = 2;
    public const BYTE   = 3;
    public const I08    = 3;
    public const DOUBLE = 4;
    public const I16    = 6;
    public const I32    = 8;
    public const I64    = 10;
    public const STRING = 11;
    public const UTF7   = 11;
    public const STRUCT = 12;
    public const MAP    = 13;
    public const SET    = 14;
    public const LST    = 15;    // N.B. cannot use LIST keyword in PHP!
    public const UUID   = 16;
    public const UTF8   = 16;
    public const UTF16  = 17;
}
