| @@ 93-101 (lines=9) @@ | ||
| 90 | /** |
|
| 91 | * @return Carbon |
|
| 92 | */ |
|
| 93 | public function getDataVencimentoRecebida() |
|
| 94 | { |
|
| 95 | if ($this->attributes['data_vencimento'] instanceof Carbon) { |
|
| 96 | return $this->attributes['data_vencimento']->setTime(0, 0, 0); |
|
| 97 | } else { |
|
| 98 | return Carbon::createFromFormat($this->date_format, $this->attributes['data_vencimento']) |
|
| 99 | ->setTime(0, 0, 0); |
|
| 100 | } |
|
| 101 | } |
|
| 102 | ||
| 103 | /** |
|
| 104 | * @return Carbon |
|
| @@ 106-114 (lines=9) @@ | ||
| 103 | /** |
|
| 104 | * @return Carbon |
|
| 105 | */ |
|
| 106 | public function getDataDocumento() |
|
| 107 | { |
|
| 108 | if ($this->attributes['data_documento'] instanceof Carbon) { |
|
| 109 | return $this->attributes['data_documento']->setTime(0, 0, 0); |
|
| 110 | } else { |
|
| 111 | return Carbon::createFromFormat( |
|
| 112 | $this->date_format, $this->attributes['data_documento'])->setTime(0, 0, 0); |
|
| 113 | } |
|
| 114 | } |
|
| 115 | ||
| 116 | /** |
|
| 117 | * @return Carbon |
|