123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?php
- require_once 'phing/tasks/ext/phar/PharMetadata.php';
- class PharMetadataElement
- extends PharMetadata
- {
-
- private $name;
-
- private $value;
-
- public function setValue($value)
- {
- $this->value = $value;
- }
-
- public function setName($name)
- {
- $this->name = $name;
- }
-
- public function getName()
- {
- return $this->name;
- }
-
- public function getValue()
- {
-
- return (empty($this->elements) ? $this->value : $this->elements);
- }
-
- public function toArray()
- {
- return (empty($this->elements) ? $this->value : parent::toArray());
- }
- }
|