/** * Make a new entry for holding a version. * * @param PelTag the tag. This should be one of {@link * PelTag::EXIF_VERSION}, {@link PelTag::FLASH_PIX_VERSION}, * or {@link PelTag::INTEROPERABILITY_VERSION}. * * @param float the version. The size of the entries leave room for * exactly four digits: two digits on either side of the decimal * point. */ function __construct($tag, $version = 0.0) { parent::__construct($tag); $this->setValue($version); }
/** * Make a new entry for holding a user comment. * * @param * string the new user comment. * * @param * string the encoding of the comment. This should be either * 'ASCII', 'JIS', 'Unicode', or the empty string specifying an * undefined encoding. */ public function __construct($comment = '', $encoding = 'ASCII') { parent::__construct(PelTag::USER_COMMENT); $this->setValue($comment, $encoding); }