Delivery extends AbstractEntity
Delivery
Tags
Table of Contents
$id | int | |
---|---|---|
$name | string|null | |
$service_name | string|null | |
$description | string|null | |
$confirm_url | string|null | |
$sort_no | int|null | |
$visible | bool | |
$create_date | DateTime | |
$update_date | DateTime | |
$PaymentOptions | Collection | |
$DeliveryFees | Collection | |
$DeliveryTimes | Collection | |
$Creator | Member | |
$SaleType | SaleType | |
$AnnotationReader | ||
__toString() | string | |
__construct() | Constructor | mixed |
getId() | Get id. | int |
setName() | Set name. | Delivery |
getName() | Get name. | string|null |
setServiceName() | Set serviceName. | Delivery |
getServiceName() | Get serviceName. | string|null |
setDescription() | Set description. | Delivery |
getDescription() | Get description. | string|null |
setConfirmUrl() | Set confirmUrl. | Delivery |
getConfirmUrl() | Get confirmUrl. | string|null |
setSortNo() | Set sortNo. | Delivery |
getSortNo() | Get sortNo. | int|null |
setCreateDate() | Set createDate. | Delivery |
getCreateDate() | Get createDate. | DateTime |
setUpdateDate() | Set updateDate. | Delivery |
getUpdateDate() | Get updateDate. | DateTime |
addPaymentOption() | Add paymentOption. | Delivery |
removePaymentOption() | Remove paymentOption. | bool |
getPaymentOptions() | Get paymentOptions. | Collection |
addDeliveryFee() | Add deliveryFee. | Delivery |
removeDeliveryFee() | Remove deliveryFee. | bool |
getDeliveryFees() | Get deliveryFees. | Collection |
addDeliveryTime() | Add deliveryTime. | Delivery |
removeDeliveryTime() | Remove deliveryTime. | bool |
getDeliveryTimes() | Get deliveryTimes. | Collection |
setCreator() | Set creator. | Delivery |
getCreator() | Get creator. | Member|null |
setSaleType() | Set saleType. | Delivery |
getSaleType() | Get saleType. | SaleType|null |
setVisible() | Set visible | Delivery |
isVisible() | Is the visibility visible? | bool |
offsetExists() | mixed | |
offsetSet() | mixed | |
offsetGet() | mixed | |
offsetUnset() | mixed | |
setPropertiesFromArray() | 引数の連想配列を元にプロパティを設定します. | mixed |
toArray() | Convert to associative array. | array |
toNormalizedArray() | Convert to associative array, and normalize to association properties. | array |
toJSON() | Convert to JSON. | string |
toXML() | Convert to XML. | string |
copyProperties() | コピー元のオブジェクトのフィールド名を指定して、同名のフィールドに値をコピー | AbstractEntity |
setAnnotationReader() | Set AnnotationReader. | AbstractEntity |
getAnnotationReader() | Get AnnotationReader. | Reader |
getEntityIdentifierAsArray() | Convert to Entity of Identity value to associative array. | array |
Properties
$id
private
int
$id
Tags
$name
private
string|null
$name
Tags
$service_name
private
string|null
$service_name
Tags
$description
private
string|null
$description
Tags
$confirm_url
private
string|null
$confirm_url
Tags
$sort_no
private
int|null
$sort_no
Tags
$visible
private
bool
$visible
= true
Tags
$create_date
private
DateTime
$create_date
Tags
$update_date
private
DateTime
$update_date
Tags
$PaymentOptions
private
Collection
$PaymentOptions
Tags
$DeliveryFees
private
Collection
$DeliveryFees
Tags
$DeliveryTimes
private
Collection
$DeliveryTimes
Tags
$Creator
private
Member
$Creator
Tags
$SaleType
private
SaleType
$SaleType
Tags
$AnnotationReader
private
mixed
$AnnotationReader
Methods
__toString()
public
__toString(
)
: string
Return values
string__construct()
Constructor
public
__construct(
)
: mixed
Return values
mixedgetId()
Get id.
public
getId(
)
: int
Return values
intsetName()
Set name.
public
setName(
[ $name :
string|null
= null ]
)
: Delivery
Parameters
- $name : string|null = null
Return values
DeliverygetName()
Get name.
public
getName(
)
: string|null
Return values
string|nullsetServiceName()
Set serviceName.
public
setServiceName(
[ $serviceName :
string|null
= null ]
)
: Delivery
Parameters
- $serviceName : string|null = null
Return values
DeliverygetServiceName()
Get serviceName.
public
getServiceName(
)
: string|null
Return values
string|nullsetDescription()
Set description.
public
setDescription(
[ $description :
string|null
= null ]
)
: Delivery
Parameters
- $description : string|null = null
Return values
DeliverygetDescription()
Get description.
public
getDescription(
)
: string|null
Return values
string|nullsetConfirmUrl()
Set confirmUrl.
public
setConfirmUrl(
[ $confirmUrl :
string|null
= null ]
)
: Delivery
Parameters
- $confirmUrl : string|null = null
Return values
DeliverygetConfirmUrl()
Get confirmUrl.
public
getConfirmUrl(
)
: string|null
Return values
string|nullsetSortNo()
Set sortNo.
public
setSortNo(
[ $sortNo :
int|null
= null ]
)
: Delivery
Parameters
- $sortNo : int|null = null
Return values
DeliverygetSortNo()
Get sortNo.
public
getSortNo(
)
: int|null
Return values
int|nullsetCreateDate()
Set createDate.
public
setCreateDate(
$createDate :
DateTime
)
: Delivery
Parameters
- $createDate : DateTime
Return values
DeliverygetCreateDate()
Get createDate.
public
getCreateDate(
)
: DateTime
Return values
DateTimesetUpdateDate()
Set updateDate.
public
setUpdateDate(
$updateDate :
DateTime
)
: Delivery
Parameters
- $updateDate : DateTime
Return values
DeliverygetUpdateDate()
Get updateDate.
public
getUpdateDate(
)
: DateTime
Return values
DateTimeaddPaymentOption()
Add paymentOption.
public
addPaymentOption(
$paymentOption :
PaymentOption
)
: Delivery
Parameters
- $paymentOption : PaymentOption
Return values
DeliveryremovePaymentOption()
Remove paymentOption.
public
removePaymentOption(
$paymentOption :
PaymentOption
)
: bool
Parameters
- $paymentOption : PaymentOption
Return values
bool —TRUE if this collection contained the specified element, FALSE otherwise.
getPaymentOptions()
Get paymentOptions.
public
getPaymentOptions(
)
: Collection
Return values
CollectionaddDeliveryFee()
Add deliveryFee.
public
addDeliveryFee(
$deliveryFee :
DeliveryFee
)
: Delivery
Parameters
- $deliveryFee : DeliveryFee
Return values
DeliveryremoveDeliveryFee()
Remove deliveryFee.
public
removeDeliveryFee(
$deliveryFee :
DeliveryFee
)
: bool
Parameters
- $deliveryFee : DeliveryFee
Return values
bool —TRUE if this collection contained the specified element, FALSE otherwise.
getDeliveryFees()
Get deliveryFees.
public
getDeliveryFees(
)
: Collection
Return values
CollectionaddDeliveryTime()
Add deliveryTime.
public
addDeliveryTime(
$deliveryTime :
DeliveryTime
)
: Delivery
Parameters
- $deliveryTime : DeliveryTime
Return values
DeliveryremoveDeliveryTime()
Remove deliveryTime.
public
removeDeliveryTime(
$deliveryTime :
DeliveryTime
)
: bool
Parameters
- $deliveryTime : DeliveryTime
Return values
bool —TRUE if this collection contained the specified element, FALSE otherwise.
getDeliveryTimes()
Get deliveryTimes.
public
getDeliveryTimes(
)
: Collection
Return values
CollectionsetCreator()
Set creator.
public
setCreator(
[ $creator :
Member|null
= null ]
)
: Delivery
Parameters
- $creator : Member|null = null
Return values
DeliverygetCreator()
Get creator.
public
getCreator(
)
: Member|null
Return values
Member|nullsetSaleType()
Set saleType.
public
setSaleType(
[ $saleType :
SaleType|null
= null ]
)
: Delivery
Parameters
- $saleType : SaleType|null = null
Return values
DeliverygetSaleType()
Get saleType.
public
getSaleType(
)
: SaleType|null
Return values
SaleType|nullsetVisible()
Set visible
public
setVisible(
$visible :
bool
)
: Delivery
Parameters
- $visible : bool
Return values
DeliveryisVisible()
Is the visibility visible?
public
isVisible(
)
: bool
Return values
booloffsetExists()
public
offsetExists(
$offset :
mixed
)
: mixed
Parameters
- $offset : mixed
Return values
mixedoffsetSet()
public
offsetSet(
$offset :
mixed
, $value :
mixed
)
: mixed
Parameters
- $offset : mixed
- $value : mixed
Return values
mixedoffsetGet()
public
offsetGet(
$offset :
mixed
)
: mixed
Parameters
- $offset : mixed
Return values
mixedoffsetUnset()
public
offsetUnset(
$offset :
mixed
)
: mixed
Parameters
- $offset : mixed
Return values
mixedsetPropertiesFromArray()
引数の連想配列を元にプロパティを設定します.
public
setPropertiesFromArray(
$arrProps :
array
[, $excludeAttribute :
string[]
= [] ]
[, $parentClass :
ReflectionClass
= null ]
)
: mixed
DBから取り出した連想配列を, プロパティへ設定する際に使用します.
Parameters
- $arrProps : array
プロパティの情報を格納した連想配列
- $excludeAttribute : string[] = []
除外したいフィールド名の配列
- $parentClass : ReflectionClass = null
親のクラス. 本メソッドの内部的に使用します.
Return values
mixedtoArray()
Convert to associative array.
public
toArray(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
[, $parentClass :
ReflectionClass
= null ]
)
: array
Symfony Serializer Component is expensive, and hard to implementation. Use for encoder only.
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
- $parentClass : ReflectionClass = null
parent class. Use internally of this method..
Return values
arraytoNormalizedArray()
Convert to associative array, and normalize to association properties.
public
toNormalizedArray(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
)
: array
The type conversion such as:
- Datetime :: W3C datetime format string
- AbstractEntity :: associative array such as [id => value]
- PersistentCollection :: associative array of [[id => value], [id => value], ...]
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
Return values
arraytoJSON()
Convert to JSON.
public
toJSON(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
)
: string
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
Return values
stringtoXML()
Convert to XML.
public
toXML(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
)
: string
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
Return values
stringcopyProperties()
コピー元のオブジェクトのフィールド名を指定して、同名のフィールドに値をコピー
public
copyProperties(
$srcObject :
object
[, $excludeAttribute :
string[]
= [] ]
)
: AbstractEntity
Parameters
- $srcObject : object
コピー元のオブジェクト
- $excludeAttribute : string[] = []
除外したいフィールド名の配列
Return values
AbstractEntitysetAnnotationReader()
Set AnnotationReader.
public
setAnnotationReader(
$Reader :
Reader
)
: AbstractEntity
Parameters
- $Reader : Reader
Return values
AbstractEntitygetAnnotationReader()
Get AnnotationReader.
public
getAnnotationReader(
)
: Reader
Return values
ReadergetEntityIdentifierAsArray()
Convert to Entity of Identity value to associative array.
public
getEntityIdentifierAsArray(
$Entity :
AbstractEntity
)
: array
Parameters
- $Entity : AbstractEntity
Return values
array —associative array of [[id => value], [id => value], ...]