lsolesen\pel\PelIfd::getSubIfd PHP Method

getSubIfd() public method

Return a sub IFD.
public getSubIfd ( integer $type ) : PelIfd
$type integer the type of the sub IFD. This must be one of {@link PelIfd::EXIF}, {@link PelIfd::GPS}, or {@link PelIfd::INTEROPERABILITY}.
return PelIfd the IFD associated with the type, or null if that sub IFD does not exist.
    public function getSubIfd($type)
    {
        if (isset($this->sub[$type])) {
            return $this->sub[$type];
        } else {
            return null;
        }
    }