src/PelEntryVersion.php
public function getText($brief = false)
    {
        $v = $this->version;

        /*
         * Versions numbers like 2.0 would be output as just 2 if we don't
         * add the '.0' ourselves.
         */
        if (floor($this->version) == $this->version) {
            $v .= '.0';
        }

        switch ($this->tag) {
            case PelTag::EXIF_VERSION:
                if ($brief) {
                    return Pel::fmt('Exif %s', $v);
                } else {
                    return Pel::fmt('Exif Version %s', $v);
                }
                break;
            case PelTag::FLASH_PIX_VERSION:
                if ($brief) {
                    return Pel::fmt('FlashPix %s', $v);
                } else {
                    return Pel::fmt('FlashPix Version %s', $v);
                }
                break;
            case PelTag::INTEROPERABILITY_VERSION:
                if ($brief) {
                    return Pel::fmt('Interoperability %s', $v);
                } else {
                    return Pel::fmt('Interoperability Version %s', $v);
                }
                break;
        }

        if ($brief) {
            return $v;
        } else {
            return Pel::fmt('Version %s', $v);
        }
    }
public function getText($brief = false)
    {
        $v = $this->version;

        /*
         * Versions numbers like 2.0 would be output as just 2 if we don't
         * add the '.0' ourselves.
         */
        if (floor($this->version) == $this->version) {
            $v .= '.0';
        }

        switch ($this->tag) {
            case PelTag::EXIF_VERSION:
                if ($brief) {
                    return Pel::fmt('Exif %s', $v);
                } else {
                    return Pel::fmt('Exif Version %s', $v);
                }
                break;
            case PelTag::FLASH_PIX_VERSION:
                if ($brief) {
                    return Pel::fmt('FlashPix %s', $v);
                } else {
                    return Pel::fmt('FlashPix Version %s', $v);
                }
                break;
            case PelTag::INTEROPERABILITY_VERSION:
                if ($brief) {
                    return Pel::fmt('Interoperability %s', $v);
                } else {
                    return Pel::fmt('Interoperability Version %s', $v);
                }
                break;
        }

        if ($brief) {
            return $v;
        } else {
            return Pel::fmt('Version %s', $v);
        }
    }
public function getText ( $ brief = false ) { $ v = $ this -> version ; /*
         * Versions numbers like 2.0 would be output as just 2 if we don't
         * add the '.0' ourselves.
         */ if ( floor ( $ this -> version ) == $ this -> version ) { $ v .= '.0' ; } switch ( $ this -> tag ) { case PelTag :: EXIF_VERSION : if ( $ brief ) { return Pel :: fmt ( 'Exif %s' , $ v ) ; } else { return Pel :: fmt ( 'Exif Version %s' , $ v ) ; } break ; case PelTag :: FLASH_PIX_VERSION : if ( $ brief ) { return Pel :: fmt ( 'FlashPix %s' , $ v ) ; } else { return Pel :: fmt ( 'FlashPix Version %s' , $ v ) ; } break ; case PelTag :: INTEROPERABILITY_VERSION : if ( $ brief ) { return Pel :: fmt ( 'Interoperability %s' , $ v ) ; } else { return Pel :: fmt ( 'Interoperability Version %s' , $ v ) ; } break ; } if ( $ brief ) { return $ v ; } else { return Pel :: fmt ( 'Version %s' , $ v ) ; } }
Return a text string with the version.

@param boolean $brief
controls if the output should be brief. Brief
output omits the word 'Version' so the result is just 'Exif x.y'
instead of 'Exif Version x.y' if the entry holds information
about the Exif version --- the output for FlashPix is similar.

@return string the version number with the type of the tag,
either 'Exif' or 'FlashPix'.
Return a text string with the version .