| @@ -2,10 +2,10 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\SchemaOrg\Generator\Parser; | 
| 4 | 4 | |
| 5 | -use Spatie\SchemaOrg\Generator\Type; | |
| 6 | 5 | use Spatie\SchemaOrg\Generator\Property; | 
| 7 | -use Symfony\Component\DomCrawler\Crawler; | |
| 6 | +use Spatie\SchemaOrg\Generator\Type; | |
| 8 | 7 | use Spatie\SchemaOrg\Generator\TypeCollection; | 
| 8 | +use Symfony\Component\DomCrawler\Crawler; | |
| 9 | 9 | |
| 10 | 10 | class RdfaParser | 
| 11 | 11 |  { | 
| @@ -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) { | 
| @@ -3,8 +3,8 @@ | ||
| 3 | 3 | namespace Spatie\SchemaOrg\Generator\Writer; | 
| 4 | 4 | |
| 5 | 5 | use League\Flysystem\Adapter\Local; | 
| 6 | -use Spatie\SchemaOrg\Generator\Type; | |
| 7 | 6 | use League\Flysystem\Filesystem as Flysystem; | 
| 7 | +use Spatie\SchemaOrg\Generator\Type; | |
| 8 | 8 | use Spatie\SchemaOrg\Generator\TypeCollection; | 
| 9 | 9 | |
| 10 | 10 | class Filesystem | 
| @@ -3,8 +3,8 @@ | ||
| 3 | 3 | namespace Spatie\SchemaOrg; | 
| 4 | 4 | |
| 5 | 5 | use DateTime; | 
| 6 | -use ReflectionClass; | |
| 7 | 6 | use DateTimeInterface; | 
| 7 | +use ReflectionClass; | |
| 8 | 8 | use Spatie\SchemaOrg\Exceptions\InvalidProperty; | 
| 9 | 9 | |
| 10 | 10 | abstract class BaseType implements Type |