CoolCMS API

PaymentCallback extends PaymentCallback
in package

Attributes
#[Entity]
#[Table]
$name: 'cms_system_payment_callbacks'
#[TableAlias]
'paymentCallback'

Table of Contents

Properties

$callbackKey  : string
$class  : string|null
$function  : string|null
$id  : int|null
$namespace  : string|null
$serviceName  : 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.
getCallbackKey()  : string
getClass()  : string|null
getFunction()  : string|null
getId()  : int|null
getNamespace()  : string|null
getServiceName()  : string|null
isPersisted()  : bool
setCallbackKey()  : $this
setClass()  : $this
setFunction()  : self
setId()  : $this
setNamespace()  : $this
setServiceName()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$callbackKey

protected string $callbackKey = ''
Attributes
#[Column]
$name: 'callback_key'
$type: 'string'
$length: 45

$class

protected string|null $class = null
Attributes
#[Column]
$name: 'class'
$type: 'string'
$length: 255
$nullable: true
#[FieldAccess]
$read: Audience::Privileged
$insert: Audience::Privileged
$update: Audience::Privileged

$function

protected string|null $function = null
Attributes
#[Column]
$name: '`function`'
$type: 'string'
$length: 255
$nullable: true
#[FieldAccess]
$read: Audience::Privileged
$insert: Audience::Privileged
$update: Audience::Privileged

$id

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

$namespace

protected string|null $namespace = null
Attributes
#[Column]
$name: 'namespace'
$type: 'string'
$length: 255
$nullable: true
#[FieldAccess]
$read: Audience::Privileged
$insert: Audience::Privileged
$update: Audience::Privileged

$serviceName

protected string|null $serviceName = null
Attributes
#[Column]
$name: 'service_name'
$type: 'string'
$length: 255
$nullable: true
#[FieldAccess]
$read: Audience::Privileged
$insert: Audience::Privileged
$update: Audience::Privileged

Methods

__construct()

public __construct([int|null $id = null ][, string|null $serviceName = null ][, string $callbackKey = '' ][, string|null $namespace = null ][, string|null $class = null ][, string|null $function = null ]) : mixed
Parameters
$id : int|null = null
$serviceName : string|null = null
$callbackKey : string = ''
$namespace : string|null = null
$class : string|null = null
$function : 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>

getCallbackKey()

public getCallbackKey() : string
Return values
string

getClass()

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

getFunction()

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

getNamespace()

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

getServiceName()

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

setCallbackKey()

public setCallbackKey(string $callbackKey) : $this
Parameters
$callbackKey : string
Return values
$this

setClass()

public setClass(string|null $class) : $this
Parameters
$class : string|null
Return values
$this

setFunction()

public setFunction(string|null $function) : self
Parameters
$function : string|null
Return values
self

setId()

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

setNamespace()

public setNamespace(string|null $namespace) : $this
Parameters
$namespace : string|null
Return values
$this

setServiceName()

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