Metadata.php 892 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * This file is part of the PHPExiftool package.
  4. *
  5. * (c) Alchemy <support@alchemy.fr>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace PHPExiftool\Driver\Metadata;
  11. use PHPExiftool\Driver\TagInterface;
  12. use PHPExiftool\Driver\Value\ValueInterface;
  13. /**
  14. * Metadata Object for mapping a Tag to a value
  15. *
  16. * @author Romain Neutron - imprec@gmail.com
  17. * @license http://opensource.org/licenses/MIT MIT
  18. */
  19. class Metadata
  20. {
  21. protected $tag;
  22. protected $value;
  23. public function __construct(TagInterface $tag, ValueInterface $value)
  24. {
  25. $this->tag = $tag;
  26. $this->value = $value;
  27. return $this;
  28. }
  29. public function getTag()
  30. {
  31. return $this->tag;
  32. }
  33. public function getValue()
  34. {
  35. return $this->value;
  36. }
  37. }