public function __construct($data = [])
 {
     parent::__construct($data);
     if ($this->data['ДатаСоздания']) {
         $this->data['ДатаСоздания'] = $this->toDate($this->data['ДатаСоздания']);
     }
     if ($this->data['ВремяСоздания']) {
         $this->data['ВремяСоздания'] = $this->toTime($this->data['ВремяСоздания']);
     }
 }
 public function __construct($data = [])
 {
     parent::__construct($data);
     foreach (['ДатаНачала', 'ДатаКонца'] as $k) {
         if ($this->data[$k]) {
             $this->data[$k] = $this->toDate($this->data[$k]);
         }
     }
     foreach (['НачальныйОстаток', 'ВсегоПоступило', 'ВсегоСписано', 'КонечныйОстаток'] as $k) {
         if ($this->data[$k]) {
             $this->data[$k] = $this->toFloat($this->data[$k]);
         }
     }
 }
 public function __construct($type, $data = [])
 {
     parent::__construct($data);
     $this->type = $type;
     foreach (['Номер'] as $k) {
         if ($this->data[$k]) {
             $this->data[$k] = $this->toInt($this->data[$k]);
         }
     }
     foreach (['Дата'] as $k) {
         if ($this->data[$k]) {
             $this->data[$k] = $this->toDate($this->data[$k]);
         }
     }
     foreach (['Сумма'] as $k) {
         if ($this->data[$k]) {
             $this->data[$k] = $this->toFloat($this->data[$k]);
         }
     }
 }