Prospectus.php 664 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace DNB;
  3. class Prospectus extends AbstractPostSerializable implements PostSerializableInterface {
  4. public function __construct(
  5. private Assigment $assigment,
  6. private Questionaire $questionaire,
  7. private Customer $customer,
  8. ) {}
  9. public function toPostParams(): array {
  10. return array_merge(
  11. $this->assigment->toPostParams(),
  12. $this->questionaire->toPostParams(),
  13. [
  14. 'customer' => $this->customer->toPostParams()
  15. ]
  16. );
  17. }
  18. protected static function getClassVars(): array {
  19. return array_keys(get_class_vars(__CLASS__));
  20. }
  21. }