PHP Class Sonata\ProductBundle\Entity\BasePackage

Inheritance: implements Sonata\Component\Product\PackageInterface
Show file Open project: sonata-project/ecommerce

Protected Properties

Property Type Description
$createdAt DateTime
$enabled boolean
$height float
$length float
$product Sonata\Component\Product\ProductInterface
$updatedAt DateTime
$weight float
$width float

Public Methods

Method Description
getCreatedAt ( ) : DateTime Get createdAt.
getEnabled ( ) : boolean Get enabled.
getHeight ( ) : float Get height.
getLength ( ) : float Get length.
getProduct ( )
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 )
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

public getProduct ( )

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

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

Property Details

$createdAt protected property

protected DateTime $createdAt
return DateTime

$enabled protected property

protected bool $enabled
return boolean

$height protected property

protected float $height
return float

$length protected property

protected float $length
return float

$product protected property

protected ProductInterface,Sonata\Component\Product $product
return Sonata\Component\Product\ProductInterface

$updatedAt protected property

protected DateTime $updatedAt
return DateTime

$weight protected property

protected float $weight
return float

$width protected property

protected float $width
return float