lsolesen\pel\PelIfd::isValidTag PHP Method

isValidTag() public method

Different types of IFDs can contain different kinds of tags --- the {@link IFD0} type, for example, cannot contain a {@link PelTag::GPS_LONGITUDE} tag. A special exception is tags with values above 0xF000. They are treated as private tags and will be allowed everywhere (use this for testing or for implementing your own types of tags).
See also: getValidTags()
public isValidTag ( lsolesen\pel\PelTag $tag ) : boolean
$tag lsolesen\pel\PelTag the tag.
return boolean true if the tag is considered valid in this IFD, false otherwise.
    public function isValidTag($tag)
    {
        return $tag > 0xf000 || in_array($tag, $this->getValidTags());
    }