46 lines
892 B
PHP
Executable File
46 lines
892 B
PHP
Executable File
<?php
|
|
|
|
/**
|
|
* This file is part of the PHPExiftool package.
|
|
*
|
|
* (c) Alchemy <support@alchemy.fr>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace PHPExiftool\Driver\Metadata;
|
|
|
|
use PHPExiftool\Driver\TagInterface;
|
|
use PHPExiftool\Driver\Value\ValueInterface;
|
|
|
|
/**
|
|
* Metadata Object for mapping a Tag to a value
|
|
*
|
|
* @author Romain Neutron - imprec@gmail.com
|
|
* @license http://opensource.org/licenses/MIT MIT
|
|
*/
|
|
class Metadata
|
|
{
|
|
protected $tag;
|
|
protected $value;
|
|
|
|
public function __construct(TagInterface $tag, ValueInterface $value)
|
|
{
|
|
$this->tag = $tag;
|
|
$this->value = $value;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getTag()
|
|
{
|
|
return $this->tag;
|
|
}
|
|
|
|
public function getValue()
|
|
{
|
|
return $this->value;
|
|
}
|
|
}
|