CustomerContact
extends BaseEntity
in package
implements
IdentifiableInterface
uses
IdentifiableTrait
AbstractYes
Attributes
- #[MappedSuperclass]
- #[TableAlias]
- $alias: 'customerContact'
Table of Contents
Interfaces
- IdentifiableInterface
- Entity with a simple integer primary key. Most entities have one (often via {@see \App\Core\Traits\Shared\Models\Entities\IdentifiableTrait}); texts and links with a composite key do not, which is why `getId()` is not on {@see \App\Core\Base\BaseEntity}. Code that needs the id of a generic entity asks for this interface (parameter type, template bound, `instanceof`).
Properties
- $city : string|null
- $companyName : string|null
- $country : string|null
- $countryCode : string|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
- 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
- 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]
$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
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>getCity()
public
getCity() : string|null
Return values
string|nullgetCompanyName()
public
getCompanyName() : string|null
Return values
string|nullgetCountry()
public
getCountry() : string|null
Return values
string|nullgetCountryCode()
public
getCountryCode() : string|null
Return values
string|nullgetCustomerId()
public
getCustomerId() : int|null
Return values
int|nullgetDlvCity()
public
getDlvCity() : string|null
Return values
string|nullgetDlvCountry()
public
getDlvCountry() : string|null
Return values
string|nullgetDlvCountryCode()
public
getDlvCountryCode() : string|null
Return values
string|nullgetDlvInformations()
public
getDlvInformations() : string|null
Return values
string|nullgetDlvName()
public
getDlvName() : string|null
Return values
string|nullgetDlvPostcode()
public
getDlvPostcode() : string|null
Return values
string|nullgetDlvStreet()
public
getDlvStreet() : string|null
Return values
string|nullgetEmail()
public
getEmail() : string|null
Return values
string|nullgetFirstname()
public
getFirstname() : string|null
Return values
string|nullgetId()
public
getId() : int|null
Return values
int|nullgetInformations()
public
getInformations() : string|null
Return values
string|nullgetLastname()
public
getLastname() : string|null
Return values
string|nullgetName()
public
getName() : string
Return values
stringgetName2()
public
getName2() : string|null
Return values
string|nullgetPhone()
public
getPhone() : string|null
Return values
string|nullgetPostcode()
public
getPostcode() : string|null
Return values
string|nullgetRegNo()
public
getRegNo() : string|null
Return values
string|nullgetStreet()
public
getStreet() : string|null
Return values
string|nullgetUseDelivery()
public
getUseDelivery() : bool
Return values
boolgetUserTypeId()
public
getUserTypeId() : int|null
Return values
int|nullgetVatId()
public
getVatId() : string|null
Return values
string|nullgetVatInformations()
public
getVatInformations() : string|null
Return values
string|nullisPersisted()
public
isPersisted() : bool
Return values
boolsetCity()
public
setCity(string|null $city) : $this
Parameters
- $city : string|null
Return values
$thissetCompanyName()
public
setCompanyName(string|null $companyName) : $this
Parameters
- $companyName : string|null
Return values
$thissetCountry()
public
setCountry(string|null $country) : $this
Parameters
- $country : string|null
Return values
$thissetCountryCode()
public
setCountryCode(string|null $countryCode) : $this
Parameters
- $countryCode : string|null
Return values
$thissetCustomerId()
public
setCustomerId(int|null $customerId) : $this
Parameters
- $customerId : int|null
Return values
$thissetDlvCity()
public
setDlvCity(string|null $dlvCity) : $this
Parameters
- $dlvCity : string|null
Return values
$thissetDlvCountry()
public
setDlvCountry(string|null $dlvCountry) : $this
Parameters
- $dlvCountry : string|null
Return values
$thissetDlvCountryCode()
public
setDlvCountryCode(string|null $dlvCountryCode) : $this
Parameters
- $dlvCountryCode : string|null
Return values
$thissetDlvInformations()
public
setDlvInformations(string|null $dlvInformations) : $this
Parameters
- $dlvInformations : string|null
Return values
$thissetDlvName()
public
setDlvName(string|null $dlvName) : $this
Parameters
- $dlvName : string|null
Return values
$thissetDlvPostcode()
public
setDlvPostcode(string|null $dlvPostcode) : $this
Parameters
- $dlvPostcode : string|null
Return values
$thissetDlvStreet()
public
setDlvStreet(string|null $dlvStreet) : $this
Parameters
- $dlvStreet : string|null
Return values
$thissetEmail()
public
setEmail(string|null $email) : $this
Parameters
- $email : string|null
Return values
$thissetFirstname()
public
setFirstname(string|null $firstname) : $this
Parameters
- $firstname : string|null
Return values
$thissetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetInformations()
public
setInformations(string|null $informations) : $this
Parameters
- $informations : string|null
Return values
$thissetLastname()
public
setLastname(string|null $lastname) : $this
Parameters
- $lastname : string|null
Return values
$thissetName()
public
setName(string $name) : $this
Parameters
- $name : string
Return values
$thissetName2()
public
setName2(string|null $name2) : $this
Parameters
- $name2 : string|null
Return values
$thissetPhone()
public
setPhone(string|null $phone) : $this
Parameters
- $phone : string|null
Return values
$thissetPostcode()
public
setPostcode(string|null $postcode) : $this
Parameters
- $postcode : string|null
Return values
$thissetRegNo()
public
setRegNo(string|null $regNo) : $this
Parameters
- $regNo : string|null
Return values
$thissetStreet()
public
setStreet(string|null $street) : $this
Parameters
- $street : string|null
Return values
$thissetUseDelivery()
public
setUseDelivery(bool $useDelivery) : $this
Parameters
- $useDelivery : bool
Return values
$thissetUserTypeId()
public
setUserTypeId(int|null $userTypeId) : $this
Parameters
- $userTypeId : int|null
Return values
$thissetVatId()
public
setVatId(string|null $vatId) : $this
Parameters
- $vatId : string|null
Return values
$thissetVatInformations()
public
setVatInformations(string|null $vatInformations) : $this
Parameters
- $vatInformations : string|null
Return values
$thisgetTraitsRecursive()
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>