offsetExists() 공개 메소드

offsetExists for ArrayAccess
public offsetExists ( string $offset ) : boolean
$offset string
리턴 boolean
 /**
  * offsetExists for ArrayAccess
  * @param string $offset
  * @return bool
  */
 public function offsetExists($offset)
 {
     if (in_array($offset, array('cost'))) {
         return true;
     }
     return parent::offsetExists($offset);
 }
 /**
  * offsetExists for ArrayAccess
  * @param string $offset
  * @return bool
  */
 public function offsetExists($offset)
 {
     if (in_array($offset, array('line_subtotal', 'line_subtotal_tax', 'line_total', 'line_tax', 'line_tax_data', 'item_meta_array', 'item_meta'))) {
         return true;
     }
     return parent::offsetExists($offset);
 }
 /**
  * offsetExists for ArrayAccess
  * @param string $offset
  * @return bool
  */
 public function offsetExists($offset)
 {
     if (in_array($offset, array('discount_amount', 'discount_amount_tax'))) {
         return true;
     }
     return parent::offsetExists($offset);
 }