lsolesen\pel\PelIfd::getTypeName PHP Method

getTypeName() public static method

Get the name of an IFD type.
public static getTypeName ( integer $type ) : string
$type integer one of {@link PelIfd::IFD0}, {@link PelIfd::IFD1}, {@link PelIfd::EXIF}, {@link PelIfd::GPS}, or {@link PelIfd::INTEROPERABILITY}.
return string the name of type.
    public static function getTypeName($type)
    {
        switch ($type) {
            case self::IFD0:
                return '0';
            case self::IFD1:
                return '1';
            case self::EXIF:
                return 'Exif';
            case self::GPS:
                return 'GPS';
            case self::INTEROPERABILITY:
                return 'Interoperability';
            default:
                throw new PelIfdException('Unknown IFD type: %d', $type);
        }
    }