Beispiel #1
0
 public function __set($atrib, $value)
 {
     if (in_array($atrib, array('CPFCNPJSacado', 'CPFCNPJCedente'))) {
         $value = Utility::FormatNumber($value);
     } else {
         if ($atrib == 'DataPagamento') {
             $value = Utility::FormatDate($value);
         } else {
             if ($atrib == 'Pdf') {
                 $value = (string) $value;
             }
         }
     }
     if (!is_numeric($value) && !is_object($value)) {
         $value = str_replace('"', '\\"', $value);
     }
     $this->{$atrib} = $value;
 }
Beispiel #2
0
 public function fields()
 {
     return Utility::fieldsToArray(get_object_vars($this));
 }