PHP Interface Sonata\Component\Product\DeliveryInterface

Mostrar archivo Open project: sonata-project/ecommerce Interface Usage Examples

Public Methods

Method Description
fromArray ( array $array ) Populate entity from an array.
getCode ( ) : string Get class_name.
getCountryCode ( ) : string Get country.
getCreatedAt ( ) : Datetime Get createdAt.
getEnabled ( ) : boolean Get enabled.
getPerItem ( ) : boolean Get per_item.
getProduct ( ) : Sonata\Component\Product\ProductInterface Get product.
getUpdatedAt ( ) : Datetime Get updatedAt.
getZone ( ) : string Get zone.
setCode ( string $code ) Set class_name.
setCountryCode ( string $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 product.
setUpdatedAt ( DateTime $updatedAt = null ) Set updatedAt.
setZone ( string $zone ) Set zone.
toArray ( ) : array Returns Delivery base data as an array.

Method Details

fromArray() public method

Populate entity from an array.
public fromArray ( array $array )
$array array

getCode() public method

Get class_name.
public getCode ( ) : string
return string $className

getCountryCode() public method

Get country.
public getCountryCode ( ) : string
return string $country

getCreatedAt() public method

Get createdAt.
public getCreatedAt ( ) : Datetime
return Datetime $createdAt

getEnabled() public method

Get enabled.
public getEnabled ( ) : boolean
return boolean $enabled

getPerItem() public method

Get per_item.
public getPerItem ( ) : boolean
return boolean $perItem

getProduct() public method

Get product.
public getProduct ( ) : Sonata\Component\Product\ProductInterface
return Sonata\Component\Product\ProductInterface

getUpdatedAt() public method

Get updatedAt.
public getUpdatedAt ( ) : Datetime
return Datetime $updatedAt

getZone() public method

Get zone.
public getZone ( ) : string
return string $zone

setCode() public method

Set class_name.
public setCode ( string $code )
$code string

setCountryCode() public method

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

setCreatedAt() public method

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

setEnabled() public method

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

setPerItem() public method

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

setProduct() public method

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

setUpdatedAt() public method

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

setZone() public method

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

toArray() public method

Returns Delivery base data as an array.
public toArray ( ) : array
return array