| @@ 364-373 (lines=10) @@ | ||
| 361 | * |
|
| 362 | * @return $this |
|
| 363 | */ |
|
| 364 | public function setBirthDate($birthDate) |
|
| 365 | { |
|
| 366 | if ($birthDate instanceof \DateTime) { |
|
| 367 | $birthDate = $birthDate->format('Y-m-d'); |
|
| 368 | } |
|
| 369 | ||
| 370 | $this->data->birthDate = $birthDate; |
|
| 371 | ||
| 372 | return $this; |
|
| 373 | } |
|
| 374 | ||
| 375 | /** |
|
| 376 | * Set tax document from customer. |
|
| @@ 362-371 (lines=10) @@ | ||
| 359 | * |
|
| 360 | * @return \Moip\Resource\Account |
|
| 361 | */ |
|
| 362 | public function setBirthDate($birthDate) |
|
| 363 | { |
|
| 364 | if ($birthDate instanceof \DateTime) { |
|
| 365 | $birthDate = $birthDate->format('Y-m-d'); |
|
| 366 | } |
|
| 367 | ||
| 368 | $this->data->person->birthDate = $birthDate; |
|
| 369 | ||
| 370 | return $this; |
|
| 371 | } |
|
| 372 | ||
| 373 | /** |
|
| 374 | * Set tax document from account. |
|