PHP 클래스 Bitpay\Item

상속: implements bitpay\ItemInterface
파일 보기 프로젝트 열기: bitpay/php-client 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$code string
$description string
$physical boolean
$price float
$quantity integer

공개 메소드들

메소드 설명
__construct ( )
getCode ( )
getDescription ( )
getPrice ( ) : float
getQuantity ( )
isPhysical ( )
setCode ( string $code ) : bitpay\ItemInterface
setDescription ( string $description ) : bitpay\ItemInterface
setPhysical ( boolean $physical ) : bitpay\ItemInterface
setPrice ( mixed $price ) : bitpay\ItemInterface
setQuantity ( integer $quantity ) : bitpay\ItemInterface

보호된 메소드들

메소드 설명
checkPriceFormat ( string $price ) Checks the new price to include BTC values with more than 6 decimals.

메소드 상세

__construct() 공개 메소드

public __construct ( )

checkPriceFormat() 보호된 메소드

Checks the new price to include BTC values with more than 6 decimals.
protected checkPriceFormat ( string $price )
$price string The price value to check

getCode() 공개 메소드

public getCode ( )

getDescription() 공개 메소드

public getDescription ( )

getPrice() 공개 메소드

public getPrice ( ) : float
리턴 float

getQuantity() 공개 메소드

public getQuantity ( )

isPhysical() 공개 메소드

public isPhysical ( )

setCode() 공개 메소드

public setCode ( string $code ) : bitpay\ItemInterface
$code string
리턴 bitpay\ItemInterface

setDescription() 공개 메소드

public setDescription ( string $description ) : bitpay\ItemInterface
$description string
리턴 bitpay\ItemInterface

setPhysical() 공개 메소드

public setPhysical ( boolean $physical ) : bitpay\ItemInterface
$physical boolean
리턴 bitpay\ItemInterface

setPrice() 공개 메소드

public setPrice ( mixed $price ) : bitpay\ItemInterface
$price mixed A float, integer, or en_US formatted numeric string
리턴 bitpay\ItemInterface

setQuantity() 공개 메소드

public setQuantity ( integer $quantity ) : bitpay\ItemInterface
$quantity integer
리턴 bitpay\ItemInterface

프로퍼티 상세

$code 보호되어 있는 프로퍼티

protected string $code
리턴 string

$description 보호되어 있는 프로퍼티

protected string $description
리턴 string

$physical 보호되어 있는 프로퍼티

protected bool $physical
리턴 boolean

$price 보호되어 있는 프로퍼티

protected float $price
리턴 float

$quantity 보호되어 있는 프로퍼티

protected int $quantity
리턴 integer