PHP 클래스 Sonata\ProductBundle\Entity\BaseDelivery

상속: implements Sonata\Component\Product\DeliveryInterface
파일 보기 프로젝트 열기: sonata-project/ecommerce 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$code string
$countryCode string
$createdAt DateTime
$enabled boolean
$perItem boolean
$product Sonata\Component\Product\ProductInterface
$updatedAt DateTime
$zone string

공개 메소드들

메소드 설명
__toString ( ) : string
fromArray ( $array )
getCode ( ) : string Get class_name.
getCountryCode ( ) : string Get country.
getCreatedAt ( ) : DateTime Get createdAt.
getEnabled ( ) : boolean Get enabled.
getPerItem ( ) : boolean Get per_item.
getProduct ( ) : integer Get productId.
getStatusList ( ) : array return delivery status list.
getUpdatedAt ( ) : DateTime Get updatedAt.
getValidationStatusList ( ) : array
getZone ( ) : string Get zone.
prePersist ( )
preUpdate ( )
setCode ( $code ) Set code.
setCountryCode ( $countryCode ) Set country code.
setCreatedAt ( DateTime $createdAt = null ) Set createdAt.
setEnabled ( boolean $enabled ) Set enabled.
setPerItem ( boolean $perItem ) Set per_item.
setProduct ( Sonata\Component\Product\ProductInterface $product ) Set productId.
setUpdatedAt ( DateTime $updatedAt = null ) Set updatedAt.
setZone ( string $zone ) Set zone.
toArray ( )

메소드 상세

__toString() 공개 메소드

public __toString ( ) : string
리턴 string

fromArray() 공개 메소드

public fromArray ( $array )

getCode() 공개 메소드

Get class_name.
public getCode ( ) : string
리턴 string $className

getCountryCode() 공개 메소드

Get country.
public getCountryCode ( ) : string
리턴 string $country

getCreatedAt() 공개 메소드

Get createdAt.
public getCreatedAt ( ) : DateTime
리턴 DateTime $createdAt

getEnabled() 공개 메소드

Get enabled.
public getEnabled ( ) : boolean
리턴 boolean $enabled

getPerItem() 공개 메소드

Get per_item.
public getPerItem ( ) : boolean
리턴 boolean $perItem

getProduct() 공개 메소드

Get productId.
public getProduct ( ) : integer
리턴 integer $productId

getStatusList() 공개 정적인 메소드

return delivery status list.
public static getStatusList ( ) : array
리턴 array

getUpdatedAt() 공개 메소드

Get updatedAt.
public getUpdatedAt ( ) : DateTime
리턴 DateTime $updatedAt

getValidationStatusList() 공개 정적인 메소드

public static getValidationStatusList ( ) : array
리턴 array

getZone() 공개 메소드

Get zone.
public getZone ( ) : string
리턴 string $zone

prePersist() 공개 메소드

public prePersist ( )

preUpdate() 공개 메소드

public preUpdate ( )

setCode() 공개 메소드

Set code.
public setCode ( $code )
$code

setCountryCode() 공개 메소드

Set country code.
public setCountryCode ( $countryCode )
$countryCode

setCreatedAt() 공개 메소드

Set createdAt.
public setCreatedAt ( DateTime $createdAt = null )
$createdAt DateTime

setEnabled() 공개 메소드

Set enabled.
public setEnabled ( boolean $enabled )
$enabled boolean

setPerItem() 공개 메소드

Set per_item.
public setPerItem ( boolean $perItem )
$perItem boolean

setProduct() 공개 메소드

Set productId.
public setProduct ( Sonata\Component\Product\ProductInterface $product )
$product Sonata\Component\Product\ProductInterface

setUpdatedAt() 공개 메소드

Set updatedAt.
public setUpdatedAt ( DateTime $updatedAt = null )
$updatedAt DateTime

setZone() 공개 메소드

Set zone.
public setZone ( string $zone )
$zone string

toArray() 공개 메소드

public toArray ( )

프로퍼티 상세

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

protected string $code
리턴 string

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

protected string $countryCode
리턴 string

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

protected DateTime $createdAt
리턴 DateTime

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

protected bool $enabled
리턴 boolean

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

protected bool $perItem
리턴 boolean

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

protected ProductInterface,Sonata\Component\Product $product
리턴 Sonata\Component\Product\ProductInterface

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

protected DateTime $updatedAt
리턴 DateTime

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

protected string $zone
리턴 string