| 1 | <?php |
||
| 10 | class MetaTag implements RenderableInterface |
||
| 11 | { |
||
| 12 | const NAME_TYPE = 'name'; |
||
| 13 | const PROPERTY_TYPE = 'property'; |
||
| 14 | const HTTP_EQUIV_TYPE = 'http-equiv'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $type = self::NAME_TYPE; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $value; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $content; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getType() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $type |
||
| 41 | * |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | public function setType($type) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getValue() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param string $value |
||
| 65 | * |
||
| 66 | * @return $this |
||
| 67 | */ |
||
| 68 | public function setValue($value) |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return string |
||
| 77 | */ |
||
| 78 | public function getContent() |
||
| 82 | |||
| 83 | /** |
||
| 84 | * @param string $content |
||
| 85 | * |
||
| 86 | * @return $this |
||
| 87 | */ |
||
| 88 | public function setContent($content) |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @return array |
||
| 97 | */ |
||
| 98 | public function getTypes() |
||
| 106 | |||
| 107 | /** |
||
| 108 | * @return string |
||
| 109 | */ |
||
| 110 | public function render() |
||
| 114 | |||
| 115 | /** |
||
| 116 | * @return string |
||
| 117 | */ |
||
| 118 | public function __toString() |
||
| 122 | } |
||
| 123 |