Skip to content

Commit

Permalink
Merge pull request #160 from highstrike/patch-1
Browse files Browse the repository at this point in the history
Add location attributes as phpdoc class properties
  • Loading branch information
Torann authored Mar 9, 2020
2 parents 8a9b1b5 + 695e68c commit 08e5721
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@
use Illuminate\Support\Str;
use Illuminate\Support\Arr;

/**
* Class Location
*
* @property string|null $ip
* @property string|null $iso_code
* @property string|null $country
* @property string|null $city
* @property string|null $state
* @property string|null $state_name
* @property string|null $postal_code
* @property float|null $lat
* @property float|null $lon
* @property string|null $timezone
* @property string|null $continent
* @property string|null $currency
* @property bool $default
* @property bool $cached
*
* @package Torann\GeoIP
*/
class Location implements ArrayAccess
{
/**
Expand Down Expand Up @@ -199,4 +219,4 @@ public function __unset($key)
{
unset($this->attributes[$key]);
}
}
}

0 comments on commit 08e5721

Please sign in to comment.