Address
in package
Table of Contents
- $city : string
- Address city.
- $complement : string|null
- Address complement.
- $ibge : int
- Address IBGE code.
- $neighborhood : string
- Address neighborhood.
- $state : string
- Address state.
- $street : string
- Address street name.
- $zipCode : string
- Address zip code.
- __construct() : mixed
- Creates a new address instance.
- fill() : self
- Fill address attributes.
- toArray() : array<string|int, mixed>
- Transform address into an array.
- toJson() : string
- Transform address into a JSON.
Properties
$city
Address city.
public
string
$city
$complement
Address complement.
public
string|null
$complement
$ibge
Address IBGE code.
public
int
$ibge
$neighborhood
Address neighborhood.
public
string
$neighborhood
$state
Address state.
public
string
$state
$street
Address street name.
public
string
$street
$zipCode
Address zip code.
public
string
$zipCode
Methods
__construct()
Creates a new address instance.
public
__construct([array<string|int, mixed> $attributes = [] ]) : mixed
Parameters
- $attributes : array<string|int, mixed> = []
Return values
mixed —fill()
Fill address attributes.
public
fill(array<string|int, mixed> $attributes) : self
Parameters
- $attributes : array<string|int, mixed>
Return values
self —toArray()
Transform address into an array.
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —toJson()
Transform address into a JSON.
public
toJson() : string