PHP 클래스 PartKeepr\PartBundle\Entity\PartDistributor

상속: extends PartKeepr\CoreBundle\Entity\BaseEntity
파일 보기 프로젝트 열기: partkeepr/PartKeepr 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Cretes a new part->distributor link. Initializes the packaging unit with a quantity of "1".
getDistributor ( ) : Distributor Returns the distributor.
getOrderNumber ( ) : string Returns the order number.
getPackagingUnit ( ) : integer Returns the packaging unit.
getPart ( ) : Part Returns the part.
getPrice ( ) Returns the price.
getSku ( ) : string Returns the SKU (stock keeping unit).
setDistributor ( Distributor $distributor ) Sets the distributor.
setOrderNumber ( string $orderNumber ) Sets the order number.
setPackagingUnit ( integer $packagingUnit ) Sets the packaging unit for a specific distributor.
setPart ( Part $part = null ) Sets the part.
setPrice ( float $price ) Sets the price.
setSku ( string $sku ) Sets the SKU (stock keeping unit).

메소드 상세

__construct() 공개 메소드

Cretes a new part->distributor link. Initializes the packaging unit with a quantity of "1".
public __construct ( )

getDistributor() 공개 메소드

Returns the distributor.
public getDistributor ( ) : Distributor
리턴 PartKeepr\DistributorBundle\Entity\Distributor The distributor

getOrderNumber() 공개 메소드

Returns the order number.
public getOrderNumber ( ) : string
리턴 string The order number

getPackagingUnit() 공개 메소드

Returns the packaging unit.
public getPackagingUnit ( ) : integer
리턴 integer The packaging unit

getPart() 공개 메소드

Returns the part.
public getPart ( ) : Part
리턴 Part The part

getPrice() 공개 메소드

Returns the price.
public getPrice ( )

getSku() 공개 메소드

Returns the SKU (stock keeping unit).
public getSku ( ) : string
리턴 string The SKU

setDistributor() 공개 메소드

Sets the distributor.
public setDistributor ( Distributor $distributor )
$distributor PartKeepr\DistributorBundle\Entity\Distributor The distributor

setOrderNumber() 공개 메소드

Sets the order number.
public setOrderNumber ( string $orderNumber )
$orderNumber string The order number

setPackagingUnit() 공개 메소드

For example, some distributors only sell resistors in packs of 100, so you can't order just one. We use the packagingUnit to calculate how many pieces will be delivered once ordered. So if your stock level falls below the minimum (example: you would need to order 10 resistors), we suggest that you only order one resistor pack instead of 10.
public setPackagingUnit ( integer $packagingUnit )
$packagingUnit integer The amount of items in one package

setPart() 공개 메소드

Sets the part.
public setPart ( Part $part = null )
$part Part The part

setPrice() 공개 메소드

Sets the price.
public setPrice ( float $price )
$price float

setSku() 공개 메소드

Sets the SKU (stock keeping unit).
public setSku ( string $sku )
$sku string The SKU