@@ 508-517 (lines=10) @@ | ||
505 | * |
|
506 | * @return \Moip\Resource\Account |
|
507 | */ |
|
508 | public function setBirthDate($birthDate) |
|
509 | { |
|
510 | if ($birthDate instanceof \DateTime) { |
|
511 | $birthDate = $birthDate->format('Y-m-d'); |
|
512 | } |
|
513 | ||
514 | $this->data->person->birthDate = $birthDate; |
|
515 | ||
516 | return $this; |
|
517 | } |
|
518 | ||
519 | /** |
|
520 | * Set tax document from account. |
@@ 376-385 (lines=10) @@ | ||
373 | * |
|
374 | * @return $this |
|
375 | */ |
|
376 | public function setBirthDate($birthDate) |
|
377 | { |
|
378 | if ($birthDate instanceof \DateTime) { |
|
379 | $birthDate = $birthDate->format('Y-m-d'); |
|
380 | } |
|
381 | ||
382 | $this->data->birthDate = $birthDate; |
|
383 | ||
384 | return $this; |
|
385 | } |
|
386 | ||
387 | /** |
|
388 | * Set tax document (CPF) from customer. |