src/PelTiff.php
public function setIfd(PelIfd $ifd)
    {
        if ($ifd->getType() != PelIfd::IFD0) {
            throw new PelInvalidDataException('Invalid type of IFD: %d, expected %d.', $ifd->getType(), PelIfd::IFD0);
        }
        $this->ifd = $ifd;
    }
public function setIfd(PelIfd $ifd)
    {
        if ($ifd->getType() != PelIfd::IFD0) {
            throw new PelInvalidDataException('Invalid type of IFD: %d, expected %d.', $ifd->getType(), PelIfd::IFD0);
        }
        $this->ifd = $ifd;
    }
public function setIfd ( PelIfd $ ifd ) { if ( $ ifd -> getType ( ) != PelIfd :: IFD0 ) { throw new PelInvalidDataException ( 'Invalid type of IFD: %d, expected %d.' , $ ifd -> getType ( ) , PelIfd :: IFD0 ) ; } $ this -> ifd = $ ifd ; }
Set the first IFD.

@param PelIfd $ifd
the new first IFD, which must be of type {@link
PelIfd::IFD0}.
Set the first IFD .