CoolCMS API

CustomerContact extends CustomerContact
in package

Customer contact (`cms_mod_invoicer_customer_contacts`), owned collection `Customer.contacts` (cascade persist/remove).

Attributes
#[Entity]
#[Table]
$name: 'cms_mod_invoicer_customer_contacts'
#[TableAlias]
'customerContact'

Table of Contents

Properties

$city  : string|null
$companyName  : string|null
$country  : string|null
$countryCode  : string|null
$customer  : Customer|null
$customerId  : int|null
$dlvCity  : string|null
$dlvCountry  : string|null
$dlvCountryCode  : string|null
$dlvInformations  : string|null
$dlvName  : string|null
$dlvPostcode  : string|null
$dlvStreet  : string|null
$email  : string|null
$firstname  : string|null
$id  : int|null
$informations  : string|null
$lastname  : string|null
$name  : string
$name2  : string|null
$phone  : string|null
$postcode  : string|null
$regNo  : string|null
$street  : string|null
$useDelivery  : bool
$userTypeId  : int|null
$vatId  : string|null
$vatInformations  : string|null

Methods

__construct()  : mixed
callInitMethods()  : void
Calls `init{TraitName}()` for every used trait that defines such a method.
getAllTraits()  : array<string, string>
Returns all traits the class uses, including those used by parent classes and nested traits.
getCity()  : string|null
getCompanyName()  : string|null
getCountry()  : string|null
getCountryCode()  : string|null
getCustomer()  : Customer|null
getCustomerId()  : int|null
getDlvCity()  : string|null
getDlvCountry()  : string|null
getDlvCountryCode()  : string|null
getDlvInformations()  : string|null
getDlvName()  : string|null
getDlvPostcode()  : string|null
getDlvStreet()  : string|null
getEmail()  : string|null
getFirstname()  : string|null
getId()  : int|null
getInformations()  : string|null
getLastname()  : string|null
getName()  : string
getName2()  : string|null
getPhone()  : string|null
getPostcode()  : string|null
getRegNo()  : string|null
getStreet()  : string|null
getUseDelivery()  : bool
getUserTypeId()  : int|null
getVatId()  : string|null
getVatInformations()  : string|null
isPersisted()  : bool
setCity()  : $this
setCompanyName()  : $this
setCountry()  : $this
setCountryCode()  : $this
setCustomer()  : self
setCustomerId()  : $this
setDlvCity()  : $this
setDlvCountry()  : $this
setDlvCountryCode()  : $this
setDlvInformations()  : $this
setDlvName()  : $this
setDlvPostcode()  : $this
setDlvStreet()  : $this
setEmail()  : $this
setFirstname()  : $this
setId()  : $this
setInformations()  : $this
setLastname()  : $this
setName()  : $this
setName2()  : $this
setPhone()  : $this
setPostcode()  : $this
setRegNo()  : $this
setStreet()  : $this
setUseDelivery()  : $this
setUserTypeId()  : $this
setVatId()  : $this
setVatInformations()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$city

protected string|null $city = null
Attributes
#[Column]
$name: 'city'
$type: 'string'
$length: 255
$nullable: true

$companyName

protected string|null $companyName = null
Attributes
#[Column]
$name: 'company_name'
$type: 'string'
$length: 255
$nullable: true

$country

protected string|null $country = null
Attributes
#[Column]
$name: 'country'
$type: 'string'
$length: 255
$nullable: true

$countryCode

protected string|null $countryCode = null
Attributes
#[Column]
$name: 'country_code'
$type: 'string'
$length: 2
$nullable: true
$options: ['fixed' => true]

$customer

protected Customer|null $customer = null
Attributes
#[EntityOf]
\App\UI\Admin\Invoicer\Models\Entities\Customer::class
#[JoinColumn]
$name: 'cms_mod_invoicer_customers_customer_id'
$referencedColumnName: 'customer_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Admin\Invoicer\Models\Entities\Customer::class
$inversedBy: 'contacts'
#[ParentRef]

$customerId

protected int|null $customerId = null
Attributes
#[Column]
$name: 'cms_mod_invoicer_customers_customer_id'
$type: 'integer'
$insertable: false
$updatable: false
$nullable: true
$options: ['unsigned' => true]

$dlvCity

protected string|null $dlvCity = null
Attributes
#[Column]
$name: 'dlv_city'
$type: 'string'
$length: 255
$nullable: true

$dlvCountry

protected string|null $dlvCountry = null
Attributes
#[Column]
$name: 'dlv_country'
$type: 'string'
$length: 255
$nullable: true

$dlvCountryCode

protected string|null $dlvCountryCode = null
Attributes
#[Column]
$name: 'dlv_country_code'
$type: 'string'
$length: 2
$nullable: true
$options: ['fixed' => true]

$dlvInformations

protected string|null $dlvInformations = null
Attributes
#[Column]
$name: 'dlv_informations'
$type: 'text'
$nullable: true

$dlvName

protected string|null $dlvName = null
Attributes
#[Column]
$name: 'dlv_name'
$type: 'string'
$length: 255
$nullable: true

$dlvPostcode

protected string|null $dlvPostcode = null
Attributes
#[Column]
$name: 'dlv_postcode'
$type: 'string'
$length: 20
$nullable: true

$dlvStreet

protected string|null $dlvStreet = null
Attributes
#[Column]
$name: 'dlv_street'
$type: 'string'
$length: 255
$nullable: true

$email

protected string|null $email = null
Attributes
#[Column]
$name: 'email'
$type: 'string'
$length: 255
$nullable: true

$firstname

protected string|null $firstname = null
Attributes
#[Column]
$name: 'firstname'
$type: 'string'
$length: 255
$nullable: true

$id

protected int|null $id = null
Attributes
#[Column]
$name: 'customer_contact_id'
$type: 'integer'
$options: ['unsigned' => true]
#[GeneratedValue]
#[Id]

$informations

protected string|null $informations = null
Attributes
#[Column]
$name: 'informations'
$type: 'text'
$nullable: true

$lastname

protected string|null $lastname = null
Attributes
#[Column]
$name: 'lastname'
$type: 'string'
$length: 255
$nullable: true

$name

protected string $name = ''
Attributes
#[Column]
$name: 'name'
$type: 'string'
$length: 255

$name2

protected string|null $name2 = null
Attributes
#[Column]
$name: 'name_2'
$type: 'string'
$length: 255
$nullable: true

$phone

protected string|null $phone = null
Attributes
#[Column]
$name: 'phone'
$type: 'string'
$length: 255
$nullable: true

$postcode

protected string|null $postcode = null
Attributes
#[Column]
$name: 'postcode'
$type: 'string'
$length: 20
$nullable: true

$regNo

protected string|null $regNo = null
Attributes
#[Column]
$name: 'reg_no'
$type: 'string'
$length: 255
$nullable: true

$street

protected string|null $street = null
Attributes
#[Column]
$name: 'street'
$type: 'string'
$length: 255
$nullable: true

$useDelivery

protected bool $useDelivery = false
Attributes
#[Column]
$name: 'use_delivery'
$type: 'boolean'
$options: ['default' => false]

$userTypeId

protected int|null $userTypeId = null
Attributes
#[Column]
$name: 'cms_system_user_types_user_type_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$vatId

protected string|null $vatId = null
Attributes
#[Column]
$name: 'vat_id'
$type: 'string'
$length: 255
$nullable: true

$vatInformations

protected string|null $vatInformations = null
Attributes
#[Column]
$name: 'vat_informations'
$type: 'text'
$nullable: true

Methods

__construct()

public __construct([int|null $id = null ][, int|null $customerId = null ][, string $name = '' ][, string|null $name2 = null ][, string|null $companyName = null ][, string|null $firstname = null ][, string|null $lastname = null ][, string|null $email = null ][, string|null $phone = null ][, string|null $regNo = null ][, string|null $vatId = null ][, string|null $street = null ][, string|null $city = null ][, string|null $postcode = null ][, string|null $country = null ][, string|null $countryCode = null ][, string|null $informations = null ][, string|null $vatInformations = null ][, int|null $userTypeId = null ][, bool $useDelivery = false ][, string|null $dlvName = null ][, string|null $dlvStreet = null ][, string|null $dlvCity = null ][, string|null $dlvPostcode = null ][, string|null $dlvCountry = null ][, string|null $dlvCountryCode = null ][, string|null $dlvInformations = null ]) : mixed
Parameters
$id : int|null = null
$customerId : int|null = null
$name : string = ''
$name2 : string|null = null
$companyName : string|null = null
$firstname : string|null = null
$lastname : string|null = null
$email : string|null = null
$phone : string|null = null
$regNo : string|null = null
$vatId : string|null = null
$street : string|null = null
$city : string|null = null
$postcode : string|null = null
$country : string|null = null
$countryCode : string|null = null
$informations : string|null = null
$vatInformations : string|null = null
$userTypeId : int|null = null
$useDelivery : bool = false
$dlvName : string|null = null
$dlvStreet : string|null = null
$dlvCity : string|null = null
$dlvPostcode : string|null = null
$dlvCountry : string|null = null
$dlvCountryCode : string|null = null
$dlvInformations : string|null = null

callInitMethods()

Calls `init{TraitName}()` for every used trait that defines such a method.

public callInitMethods() : void

getAllTraits()

Returns all traits the class uses, including those used by parent classes and nested traits.

public getAllTraits() : array<string, string>
Return values
array<string, string>

getCompanyName()

public getCompanyName() : string|null
Return values
string|null

getCountry()

public getCountry() : string|null
Return values
string|null

getCountryCode()

public getCountryCode() : string|null
Return values
string|null

getCustomerId()

public getCustomerId() : int|null
Return values
int|null

getDlvCity()

public getDlvCity() : string|null
Return values
string|null

getDlvCountry()

public getDlvCountry() : string|null
Return values
string|null

getDlvCountryCode()

public getDlvCountryCode() : string|null
Return values
string|null

getDlvInformations()

public getDlvInformations() : string|null
Return values
string|null

getDlvName()

public getDlvName() : string|null
Return values
string|null

getDlvPostcode()

public getDlvPostcode() : string|null
Return values
string|null

getDlvStreet()

public getDlvStreet() : string|null
Return values
string|null

getEmail()

public getEmail() : string|null
Return values
string|null

getFirstname()

public getFirstname() : string|null
Return values
string|null

getInformations()

public getInformations() : string|null
Return values
string|null

getLastname()

public getLastname() : string|null
Return values
string|null

getName2()

public getName2() : string|null
Return values
string|null

getPhone()

public getPhone() : string|null
Return values
string|null

getPostcode()

public getPostcode() : string|null
Return values
string|null

getRegNo()

public getRegNo() : string|null
Return values
string|null

getStreet()

public getStreet() : string|null
Return values
string|null

getUserTypeId()

public getUserTypeId() : int|null
Return values
int|null

getVatId()

public getVatId() : string|null
Return values
string|null

getVatInformations()

public getVatInformations() : string|null
Return values
string|null

setCity()

public setCity(string|null $city) : $this
Parameters
$city : string|null
Return values
$this

setCompanyName()

public setCompanyName(string|null $companyName) : $this
Parameters
$companyName : string|null
Return values
$this

setCountry()

public setCountry(string|null $country) : $this
Parameters
$country : string|null
Return values
$this

setCountryCode()

public setCountryCode(string|null $countryCode) : $this
Parameters
$countryCode : string|null
Return values
$this

setCustomerId()

public setCustomerId(int|null $customerId) : $this
Parameters
$customerId : int|null
Return values
$this

setDlvCity()

public setDlvCity(string|null $dlvCity) : $this
Parameters
$dlvCity : string|null
Return values
$this

setDlvCountry()

public setDlvCountry(string|null $dlvCountry) : $this
Parameters
$dlvCountry : string|null
Return values
$this

setDlvCountryCode()

public setDlvCountryCode(string|null $dlvCountryCode) : $this
Parameters
$dlvCountryCode : string|null
Return values
$this

setDlvInformations()

public setDlvInformations(string|null $dlvInformations) : $this
Parameters
$dlvInformations : string|null
Return values
$this

setDlvName()

public setDlvName(string|null $dlvName) : $this
Parameters
$dlvName : string|null
Return values
$this

setDlvPostcode()

public setDlvPostcode(string|null $dlvPostcode) : $this
Parameters
$dlvPostcode : string|null
Return values
$this

setDlvStreet()

public setDlvStreet(string|null $dlvStreet) : $this
Parameters
$dlvStreet : string|null
Return values
$this

setEmail()

public setEmail(string|null $email) : $this
Parameters
$email : string|null
Return values
$this

setFirstname()

public setFirstname(string|null $firstname) : $this
Parameters
$firstname : string|null
Return values
$this

setId()

public setId(int|null $id) : $this
Parameters
$id : int|null
Return values
$this

setInformations()

public setInformations(string|null $informations) : $this
Parameters
$informations : string|null
Return values
$this

setLastname()

public setLastname(string|null $lastname) : $this
Parameters
$lastname : string|null
Return values
$this

setName()

public setName(string $name) : $this
Parameters
$name : string
Return values
$this

setName2()

public setName2(string|null $name2) : $this
Parameters
$name2 : string|null
Return values
$this

setPhone()

public setPhone(string|null $phone) : $this
Parameters
$phone : string|null
Return values
$this

setPostcode()

public setPostcode(string|null $postcode) : $this
Parameters
$postcode : string|null
Return values
$this

setRegNo()

public setRegNo(string|null $regNo) : $this
Parameters
$regNo : string|null
Return values
$this

setStreet()

public setStreet(string|null $street) : $this
Parameters
$street : string|null
Return values
$this

setUseDelivery()

public setUseDelivery(bool $useDelivery) : $this
Parameters
$useDelivery : bool
Return values
$this

setUserTypeId()

public setUserTypeId(int|null $userTypeId) : $this
Parameters
$userTypeId : int|null
Return values
$this

setVatId()

public setVatId(string|null $vatId) : $this
Parameters
$vatId : string|null
Return values
$this

setVatInformations()

public setVatInformations(string|null $vatInformations) : $this
Parameters
$vatInformations : string|null
Return values
$this

getTraitsRecursive()

Walks the trait list recursively and collects nested traits too.

private static getTraitsRecursive(array<string, string> $traits) : array<string, string>
Parameters
$traits : array<string, string>
Return values
array<string, string>
On this page

Search results