CoolCMS API

SellerBankAccount extends SellerBankAccount
in package

Seller bank account (`cms_mod_invoicer_seller_bank_accounts`), owned collection `Seller.bankAccounts` (cascade persist/remove).

Attributes
#[Entity]
#[Table]
$name: 'cms_mod_invoicer_seller_bank_accounts'
#[TableAlias]
'sellerBankAccount'

Table of Contents

Properties

$bankCode  : string
$bankName  : string|null
$iban  : string|null
$id  : int|null
$info  : string|null
$number  : string
$seller  : Seller|null
$sellerId  : int|null
$swift  : 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.
getBankCode()  : string
getBankName()  : string|null
getIban()  : string|null
getId()  : int|null
getInfo()  : string|null
getNumber()  : string
getSeller()  : Seller|null
getSellerId()  : int|null
getSwift()  : string|null
isPersisted()  : bool
setBankCode()  : $this
setBankName()  : $this
setIban()  : $this
setId()  : $this
setInfo()  : $this
setNumber()  : $this
setSeller()  : self
setSellerId()  : $this
setSwift()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$bankCode

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

$bankName

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

$iban

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

$id

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

$info

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

$number

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

$seller

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

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

$swift

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

Methods

__construct()

public __construct([int|null $id = null ][, int|null $sellerId = null ][, string $number = '' ][, string $bankCode = '' ][, string|null $bankName = null ][, string|null $iban = null ][, string|null $swift = null ][, string|null $info = null ]) : mixed
Parameters
$id : int|null = null
$sellerId : int|null = null
$number : string = ''
$bankCode : string = ''
$bankName : string|null = null
$iban : string|null = null
$swift : string|null = null
$info : 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>

setBankCode()

public setBankCode(string $bankCode) : $this
Parameters
$bankCode : string
Return values
$this

setBankName()

public setBankName(string|null $bankName) : $this
Parameters
$bankName : string|null
Return values
$this

setIban()

public setIban(string|null $iban) : $this
Parameters
$iban : string|null
Return values
$this

setId()

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

setInfo()

public setInfo(string|null $info) : $this
Parameters
$info : string|null
Return values
$this

setNumber()

public setNumber(string $number) : $this
Parameters
$number : string
Return values
$this

setSellerId()

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

setSwift()

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