CoolCMS API

SellerContact extends SellerContact
in package

Attributes
#[Entity]
#[Table]
$name: 'cms_mod_invoicer_seller_contacts'
#[TableAlias]
'sellerContact'

Table of Contents

Properties

$city  : string|null
$country  : string|null
$countryCode  : string|null
$email  : string|null
$id  : int|null
$informations  : string|null
$name  : string
$name2  : string|null
$phone  : string|null
$postcode  : string|null
$regNo  : string|null
$seller  : Seller|null
$sellerId  : int|null
$street  : string|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
getCountry()  : string|null
getCountryCode()  : string|null
getEmail()  : string|null
getId()  : int|null
getInformations()  : string|null
getName()  : string
getName2()  : string|null
getPhone()  : string|null
getPostcode()  : string|null
getRegNo()  : string|null
getSeller()  : Seller|null
getSellerId()  : int|null
getStreet()  : string|null
getVatId()  : string|null
getVatInformations()  : string|null
isPersisted()  : bool
setCity()  : $this
setCountry()  : $this
setCountryCode()  : $this
setEmail()  : $this
setId()  : $this
setInformations()  : $this
setName()  : $this
setName2()  : $this
setPhone()  : $this
setPostcode()  : $this
setRegNo()  : $this
setSeller()  : self
setSellerId()  : $this
setStreet()  : $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

$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]

$email

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

$id

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

$informations

protected string|null $informations = null
Attributes
#[Column]
$name: 'informations'
$type: 'text'
$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

$seller

protected Seller|null $seller = null
Attributes
#[JoinColumn]
$name: 'cms_mod_invoicer_sellers_seller_id'
$referencedColumnName: 'seller_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Api\Invoicer\Models\Entities\Seller::class
$inversedBy: 'contacts'

$sellerId

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

$street

protected string|null $street = null
Attributes
#[Column]
$name: 'street'
$type: 'string'
$length: 255
$nullable: 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 $sellerId = null ][, string $name = '' ][, string|null $name2 = 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 ]) : mixed
Parameters
$id : int|null = null
$sellerId : int|null = null
$name : string = ''
$name2 : 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

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|null

getCountry()

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

getCountryCode()

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

getEmail()

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

getInformations()

public getInformations() : 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

getSellerId()

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

getStreet()

public getStreet() : string|null
Return values
string|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

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

setEmail()

public setEmail(string|null $email) : $this
Parameters
$email : 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

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

setSellerId()

public setSellerId(int|null $sellerId) : $this
Parameters
$sellerId : int|null
Return values
$this

setStreet()

public setStreet(string|null $street) : $this
Parameters
$street : string|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