| @@ 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. |
|
| @@ 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. |
|
| @@ 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. |
|