@@ -15,6 +15,9 @@ discard block |
||
| 15 | 15 | /** @var \Spatie\SchemaOrg\Generator\TypeCollection */ |
| 16 | 16 | protected $types; |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param string $rdfa |
|
| 20 | + */ |
|
| 18 | 21 | public function __construct($rdfa) |
| 19 | 22 | { |
| 20 | 23 | $this->crawler = new Crawler($rdfa); |
@@ -109,6 +112,9 @@ discard block |
||
| 109 | 112 | return $node->attr($attribute); |
| 110 | 113 | } |
| 111 | 114 | |
| 115 | + /** |
|
| 116 | + * @return string |
|
| 117 | + */ |
|
| 112 | 118 | protected function getTypeFromRange(string $range) |
| 113 | 119 | { |
| 114 | 120 | switch ($range) { |