PHP Interface Sonata\Component\Product\PackageInterface

ファイルを表示 Open project: sonata-project/ecommerce Interface Usage Examples

Public Methods

Method Description
getCreatedAt ( ) : Datetime Get createdAt.
getEnabled ( ) : boolean Get enabled.
getHeight ( ) : float Get height.
getLength ( ) : float Get length.
getProduct ( ) : Sonata\Component\Product\ProductInterface Get productId.
getUpdatedAt ( ) : Datetime Get updatedAt.
getWeight ( ) : float Get weight.
getWidth ( ) : float Get width.
setCreatedAt ( DateTime $createdAt = null ) Set createdAt.
setEnabled ( boolean $enabled ) Set enabled.
setHeight ( float $height ) Set height.
setLength ( float $length ) Set length.
setProduct ( Sonata\Component\Product\ProductInterface $product ) Set productId.
setUpdatedAt ( DateTime $updatedAt = null ) Set updatedAt.
setWeight ( float $weight ) Set weight.
setWidth ( float $width ) Set width.

Method Details

getCreatedAt() public method

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

getEnabled() public method

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

getHeight() public method

Get height.
public getHeight ( ) : float
return float $height

getLength() public method

Get length.
public getLength ( ) : float
return float $length

getProduct() public method

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

getUpdatedAt() public method

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

getWeight() public method

Get weight.
public getWeight ( ) : float
return float $weight

getWidth() public method

Get width.
public getWidth ( ) : float
return float $width

setCreatedAt() public method

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

setEnabled() public method

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

setHeight() public method

Set height.
public setHeight ( float $height )
$height float

setLength() public method

Set length.
public setLength ( float $length )
$length float

setProduct() public method

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

setUpdatedAt() public method

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

setWeight() public method

Set weight.
public setWeight ( float $weight )
$weight float

setWidth() public method

Set width.
public setWidth ( float $width )
$width float