Documentation

AddressSaveTrait

Code shared by Address create/update/save actions

Table of Contents

Properties

$fixAddress  : bool
When true, apply various fixes to the address before insert.
$skipGeocode  : bool
Optional param to indicate you want to skip geocoding (useful when importing a lot of addresses at once, the job Geocode and Parse Addresses can execute this task after the import)
$streetParsing  : bool
Optional param to indicate you want the street_address field parsed into individual params

Methods

getFixAddress()  : bool
getSkipGeocode()  : bool
getStreetParsing()  : bool
setFixAddress()  : $this
setSkipGeocode()  : $this
setStreetParsing()  : $this
write()  : mixed

Properties

$fixAddress

When true, apply various fixes to the address before insert.

protected bool $fixAddress = TRUE

$skipGeocode

Optional param to indicate you want to skip geocoding (useful when importing a lot of addresses at once, the job Geocode and Parse Addresses can execute this task after the import)

protected bool $skipGeocode = FALSE

$streetParsing

Optional param to indicate you want the street_address field parsed into individual params

protected bool $streetParsing = FALSE

Methods

setFixAddress()

public setFixAddress([bool $fixAddress = ]) : $this
Parameters
$fixAddress : bool =
Return values
$this

setSkipGeocode()

public setSkipGeocode([bool $skipGeocode = ]) : $this
Parameters
$skipGeocode : bool =
Return values
$this

setStreetParsing()

public setStreetParsing([bool $streetParsing = ]) : $this
Parameters
$streetParsing : bool =
Return values
$this

write()

protected write(array<string|int, mixed> $items) : mixed
Parameters
$items : array<string|int, mixed>
Tags
inheritDoc

        
On this page

Search results