| 1 | <?php |
||
| 12 | class AbstractMeta extends AbstractBasicEntity |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $key; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $value; |
||
| 23 | |||
| 24 | /*** Key ***/ |
||
| 25 | /** |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | public function getKey() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $key |
||
| 35 | * |
||
| 36 | * @return AbstractMeta |
||
| 37 | */ |
||
| 38 | public function setKey($key) |
||
| 44 | |||
| 45 | /*** Value ***/ |
||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getValue() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param string $value |
||
| 56 | * |
||
| 57 | * @return AbstractMeta |
||
| 58 | */ |
||
| 59 | public function setValue($value) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Returns data in array |
||
| 68 | * |
||
| 69 | * @return array |
||
| 70 | */ |
||
| 71 | public function toArray() |
||
| 81 | |||
| 82 | /** |
||
| 83 | * Converts the key and value to string |
||
| 84 | * |
||
| 85 | * @return string |
||
| 86 | */ |
||
| 87 | public function __toString() |
||
| 102 | } |
||
| 103 |