Documentation

Address
in package

Address model.

Tags
psalm-type

AddressGdprArrayType = array{ type: string, street: string, number: string, postalCode: string, city: string, postalRegion: string, phone: string, }

Attributes
#[Entity]

Table of Contents

Properties

$city  : string
City.
$country  : string
Country.
$member  : Member
Member.
$number  : string
House number (+ suffix).
$phone  : string
Phone number.
$postalCode  : string
Postal code.
$street  : string
Street.
$type  : AddressTypes
Type.

Methods

getCity()  : string
Get the city.
getCountry()  : string
Get the country.
getMember()  : Member
Get the member.
getNumber()  : string
Get the house number (+ suffix).
getPhone()  : string
Get the phone number.
getPostalCode()  : string
Get the postal code.
getStreet()  : string
Get the street.
getType()  : AddressTypes
Get the type.
setCity()  : void
Set the city.
setCountry()  : void
Set the country.
setMember()  : void
Set the member.
setNumber()  : void
Set the house number (+ suffix).
setPhone()  : void
Set the phone number.
setPostalCode()  : void
Set the postal code.
setStreet()  : void
Set the street.
setType()  : void
Set the type.
toGdprArray()  : AddressGdprArrayType

Properties

$city

City.

protected string $city
Attributes
#[Column]
$type: 'string'

$country

Country.

protected string $country = 'netherlands'

By default, netherlands.

Attributes
#[Column]
$type: 'string'

$member

Member.

protected Member $member
Attributes
#[Id]
#[JoinColumn]
$name: 'lidnr'
$referencedColumnName: 'lidnr'
$nullable: false
#[ManyToOne]
$targetEntity: \Decision\Model\Member::class
$inversedBy: 'addresses'

$number

House number (+ suffix).

protected string $number
Attributes
#[Column]
$type: 'string'

$phone

Phone number.

protected string $phone
Attributes
#[Column]
$type: 'string'

$postalCode

Postal code.

protected string $postalCode
Attributes
#[Column]
$type: 'string'

$street

Street.

protected string $street
Attributes
#[Column]
$type: 'string'

$type

Type.

protected AddressTypes $type

Can be one of:

  • home (Parent's home)
  • student (Student's home)
  • mail (Where GEWIS mail should go to)
Attributes
#[Column]
$type: 'string'
$enumType: \Decision\Model\Enums\AddressTypes::class
#[Id]

Methods

getCity()

Get the city.

public getCity() : string
Return values
string

getCountry()

Get the country.

public getCountry() : string
Return values
string

getNumber()

Get the house number (+ suffix).

public getNumber() : string
Return values
string

getPhone()

Get the phone number.

public getPhone() : string
Return values
string

getPostalCode()

Get the postal code.

public getPostalCode() : string
Return values
string

getStreet()

Get the street.

public getStreet() : string
Return values
string

setCity()

Set the city.

public setCity(string $city) : void
Parameters
$city : string

setCountry()

Set the country.

public setCountry(string $country) : void
Parameters
$country : string

setMember()

Set the member.

public setMember(Member $member) : void
Parameters
$member : Member

setNumber()

Set the house number (+ suffix).

public setNumber(string $number) : void
Parameters
$number : string

setPhone()

Set the phone number.

public setPhone(string $phone) : void
Parameters
$phone : string

setPostalCode()

Set the postal code.

public setPostalCode(string $postalCode) : void
Parameters
$postalCode : string

setStreet()

Set the street.

public setStreet(string $street) : void
Parameters
$street : string

toGdprArray()

public toGdprArray() : AddressGdprArrayType
Return values
AddressGdprArrayType

        
On this page

Search results