lsolesen\pel\PelIfd::offsetSet PHP Method

offsetSet() public method

This methods is part of the ArrayAccess SPL interface for overriding array access of objects, it allows you to add new entries or replace esisting entries by doing: $ifd[PelTag::EXPOSURE_BIAS_VALUE] = $entry; Note that the actual array index passed is ignored! Instead the {@link PelTag} from the entry is used.
public offsetSet ( lsolesen\pel\PelTag $tag, lsolesen\pel\PelEntry $e )
$tag lsolesen\pel\PelTag the offset to update.
$e lsolesen\pel\PelEntry the new value.
    public function offsetSet($tag, $e)
    {
        if ($e instanceof PelEntry) {
            $tag = $e->getTag();
            $this->entries[$tag] = $e;
        } else {
            throw new PelInvalidArgumentException('Argument "%s" must be a PelEntry.', $e);
        }
    }