lsolesen\pel\PelTiff::setIfd PHP Method

setIfd() public method

Set the first IFD.
public setIfd ( PelIfd $ifd )
$ifd PelIfd the new first IFD, which must be of type {@link PelIfd::IFD0}.
    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;
    }