PHP Class Elcodi\Plugin\CustomShippingBundle\Entity\ShippingRange

Inheritance: implements Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface, use trait Elcodi\Plugin\CustomShippingBundle\Entity\Traits\ShippingPriceRangeTrait, use trait Elcodi\Plugin\CustomShippingBundle\Entity\Traits\ShippingWeightRangeTrait, use trait Elcodi\Component\Core\Entity\Traits\IdentifiableTrait, use trait Elcodi\Component\Core\Entity\Traits\EnabledTrait
Show file Open project: elcodi/bamboo

Protected Properties

Property Type Description
$carrier Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface carrier
$fromZone Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface fromZone
$name string name of the range
$priceAmount integer Product price amount
$priceCurrency Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface Product price currency
$toZone Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface toZone
$type string Type

Public Methods

Method Description
getCarrier ( ) : Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface Get Carrier
getFromZone ( ) : Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface Get FromZone
getName ( ) : string Get Name
getPrice ( ) : Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface Get price
getToZone ( ) : Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface Get ToZone
getType ( ) : mixed Get Type
setCarrier ( Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface $carrier ) Sets Carrier
setFromZone ( Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface $fromZone ) Sets FromZone
setName ( string $name ) Sets Name
setPrice ( Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface $amount ) Set price
setToZone ( Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface $toZone ) Sets ToZone
setType ( mixed $type ) Sets Type

Method Details

getCarrier() public method

Get Carrier
public getCarrier ( ) : Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface
return Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface Carrier

getFromZone() public method

Get FromZone
public getFromZone ( ) : Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface
return Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface FromZone

getName() public method

Get Name
public getName ( ) : string
return string Name

getPrice() public method

Get price
public getPrice ( ) : Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface
return Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface Price

getToZone() public method

Get ToZone
public getToZone ( ) : Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface
return Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface ToZone

getType() public method

Get Type
public getType ( ) : mixed
return mixed Type

setCarrier() public method

Sets Carrier
public setCarrier ( Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface $carrier )
$carrier Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface Carrier

setFromZone() public method

Sets FromZone
public setFromZone ( Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface $fromZone )
$fromZone Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface FromZone

setName() public method

Sets Name
public setName ( string $name )
$name string Name

setPrice() public method

Set price
public setPrice ( Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface $amount )
$amount Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface Price

setToZone() public method

Sets ToZone
public setToZone ( Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface $toZone )
$toZone Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface ToZone

setType() public method

Sets Type
public setType ( mixed $type )
$type mixed Type

Property Details

$carrier protected property

carrier
protected CarrierInterface,Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces $carrier
return Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface

$fromZone protected property

fromZone
protected ZoneInterface,Elcodi\Component\Zone\Entity\Interfaces $fromZone
return Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface

$name protected property

name of the range
protected string $name
return string

$priceAmount protected property

Product price amount
protected int $priceAmount
return integer

$priceCurrency protected property

Product price currency
protected CurrencyInterface,Elcodi\Component\Currency\Entity\Interfaces $priceCurrency
return Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface

$toZone protected property

toZone
protected ZoneInterface,Elcodi\Component\Zone\Entity\Interfaces $toZone
return Elcodi\Component\Zone\Entity\Interfaces\ZoneInterface

$type protected property

Type
protected string $type
return string