CardBrand

Informations about a card brand.

package

Default

Methods

Initialize the model.

__construct(string $name, string $image, string|null $codeName = null) 

Arguments

$name

string

Name of the brand of a credit card

$image

string

Url to the logo of the credit card brand

$codeName

string|null

Code name of the brand of a credit card

Return a code name of the brand of a credit card.

getCodeName() : string|null

Response

string|null

Return a url to the logo of the credit card brand.

getImage() : string

Response

string

Return a name of the brand of a credit card.

getName() : string

Response

string

Set a code name of the brand of a credit card.

setCodeName(string|null $codeName) : \Dotpay\Model\CardBrand

Arguments

$codeName

string|null

Code name of the brand of a credit card

Response

\Dotpay\Model\CardBrand

Set a url to the logo of the credit card brand.

setImage(string|null $image) : \Dotpay\Model\CardBrand
Throws
\Dotpay\Exception\BadParameter\UrlException

Thrown when the given url address is incorrect

Arguments

$image

string|null

Url to the logo of the credit card brand

Response

\Dotpay\Model\CardBrand

Set a code name of the brand of a credit card.

setName(string|null $name) : \Dotpay\Model\CardBrand

Arguments

$name

string|null

Name of the brand of a credit card

Response

\Dotpay\Model\CardBrand

Properties

Id of the brand in the database

id : integer|null
var

Id of the brand in the database

Type(s)

integer|null

Name of the brand of a credit card

name : string
var

Name of the brand of a credit card

Type(s)

string

Code name of the brand of a credit card

codeName : string|null
var

Code name of the brand of a credit card

Type(s)

string|null

Url to the logo of the credit card brand

image : string
var

Url to the logo of the credit card brand

Type(s)

string