| @@ 552-561 (lines=10) @@ | ||
| 549 | * |
|
| 550 | * @return \Moip\Resource\Account |
|
| 551 | */ |
|
| 552 | public function setBirthDate($birthDate) |
|
| 553 | { |
|
| 554 | if ($birthDate instanceof \DateTime) { |
|
| 555 | $birthDate = $birthDate->format('Y-m-d'); |
|
| 556 | } |
|
| 557 | ||
| 558 | $this->data->person->birthDate = $birthDate; |
|
| 559 | ||
| 560 | return $this; |
|
| 561 | } |
|
| 562 | ||
| 563 | /** |
|
| 564 | * Set tax document from account. |
|
| @@ 202-211 (lines=10) @@ | ||
| 199 | * |
|
| 200 | * @return $this |
|
| 201 | */ |
|
| 202 | public function setBirthDate($birthDate) |
|
| 203 | { |
|
| 204 | if ($birthDate instanceof \DateTime) { |
|
| 205 | $birthDate = $birthDate->format('Y-m-d'); |
|
| 206 | } |
|
| 207 | ||
| 208 | $this->data->birthDate = $birthDate; |
|
| 209 | ||
| 210 | return $this; |
|
| 211 | } |
|
| 212 | ||
| 213 | /** |
|
| 214 | * Set tax document from holder. |
|
| @@ 375-384 (lines=10) @@ | ||
| 372 | * |
|
| 373 | * @return $this |
|
| 374 | */ |
|
| 375 | public function setBirthDate($birthDate) |
|
| 376 | { |
|
| 377 | if ($birthDate instanceof \DateTime) { |
|
| 378 | $birthDate = $birthDate->format('Y-m-d'); |
|
| 379 | } |
|
| 380 | ||
| 381 | $this->data->birthDate = $birthDate; |
|
| 382 | ||
| 383 | return $this; |
|
| 384 | } |
|
| 385 | ||
| 386 | /** |
|
| 387 | * Set tax document from customer. |
|