public static function castImageExif(Image\Exif $exif, array $a, Stub $stub, $isNested, $filter = 0) { $a = $a[Caster::PREFIX_PROTECTED . 'data']; $a[Caster::PREFIX_VIRTUAL . 'aspectRatio'] = $exif->getAspectRatio(); $a[Caster::PREFIX_VIRTUAL . 'latitude'] = $exif->getLatitude(); $a[Caster::PREFIX_VIRTUAL . 'longitude'] = $exif->getLongitude(); return $a; }
public function testGetLongitude() { $exif = new Exif([Exif::GPS => '35.25513,149.1093073']); $this->assertSame(149.1093073, $exif->getLongitude()); }