/**
  * @return array
  */
 public function rules()
 {
     return array_merge(parent::rules(), array(array('durationInterval', 'type', 'type' => 'integer'), array('durationInterval', 'numerical', 'min' => 0), array('durationSign', 'type', 'type' => 'string'), array('durationType', 'type', 'type' => 'string')));
 }
 /**
  * Override to make sure the value attribute is set as a string
  */
 public function rules()
 {
     return array_merge(parent::rules(), array(array('value', 'type', 'type' => 'string')));
 }
 /**
  * Override to make sure the value attribute is set as a url value
  */
 public function rules()
 {
     return array_merge(parent::rules(), array(array('value', 'url')));
 }
 /**
  * Override to make sure value is a float and adding in additional attribute rules
  */
 public function rules()
 {
     return array_merge(parent::rules(), array(array('value', 'type', 'type' => 'float'), array('currencyId', 'type', 'type' => 'integer'), array('currencyIdType', 'validateCurrencyId'), array('currencyIdType', 'type', 'type' => 'string'), array('currencyIdType', 'required')));
 }