PHP Class Sulu\Bundle\LocationBundle\Geolocator\GeolocatorLocation

Mostra file Open project: sulu/sulu Class Usage Examples

Protected Properties

Property Type Description
$code string
$country string
$displayTitle string Title to display.
$id mixed ID of this location (according to the geolocation vendor).
$latitude float
$longitude float
$number string
$street string
$town string

Public Methods

Method Description
getCode ( )
getCountry ( )
getDisplayTitle ( )
getId ( )
getLatitude ( )
getLongitude ( )
getNumber ( )
getStreet ( )
getTown ( )
setCode ( $code )
setCountry ( $country )
setDisplayName ( $displayName )
setDisplayTitle ( $displaytitle )
setId ( $id )
setLatitude ( $latitude )
setLongitude ( $longitude )
setName ( $name ) This is a hack for the husky component which is now hard coded to use the "name" property.
setNumber ( $number )
setStreet ( $street )
setTown ( $town )
toArray ( ) : array Serialize the location to an array.

Method Details

getCode() public method

public getCode ( )

getCountry() public method

public getCountry ( )

getDisplayTitle() public method

public getDisplayTitle ( )

getId() public method

public getId ( )

getLatitude() public method

public getLatitude ( )

getLongitude() public method

public getLongitude ( )

getNumber() public method

public getNumber ( )

getStreet() public method

public getStreet ( )

getTown() public method

public getTown ( )

setCode() public method

public setCode ( $code )

setCountry() public method

public setCountry ( $country )

setDisplayName() public method

public setDisplayName ( $displayName )

setDisplayTitle() public method

public setDisplayTitle ( $displaytitle )

setId() public method

public setId ( $id )

setLatitude() public method

public setLatitude ( $latitude )

setLongitude() public method

public setLongitude ( $longitude )

setName() public method

This is a hack for the husky component which is now hard coded to use the "name" property.
public setName ( $name )

setNumber() public method

public setNumber ( $number )

setStreet() public method

public setStreet ( $street )

setTown() public method

public setTown ( $town )

toArray() public method

Serialize the location to an array.
public toArray ( ) : array
return array

Property Details

$code protected_oe property

protected string $code
return string

$country protected_oe property

protected string $country
return string

$displayTitle protected_oe property

Title to display.
protected string $displayTitle
return string

$id protected_oe property

ID of this location (according to the geolocation vendor).
protected mixed $id
return mixed

$latitude protected_oe property

protected float $latitude
return float

$longitude protected_oe property

protected float $longitude
return float

$number protected_oe property

protected string $number
return string

$street protected_oe property

protected string $street
return string

$town protected_oe property

protected string $town
return string