src/PelIfd.php
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);
        }
    }
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);
        }
    }
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 ) ; } }
Set or update a given tag in this IFD.

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:

<code>
$ifd[PelTag::EXPOSURE_BIAS_VALUE] = $entry;
</code>

Note that the actual array index passed is ignored! Instead the
{@link PelTag} from the entry is used.

@param int $tag
unused.

@param PelEntry $e
the new value.
Set or update a given tag in this IFD .