12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace DNB;
- class Prospectus extends AbstractPostSerializable implements PostSerializableInterface {
- private Assigment $assigment;
- private Questionaire $questionaire;
- private Customer $customer;
- public function __construct(
- Assigment $assigment,
- Questionaire $questionaire,
- Customer $customer
- ) {
- $this->assigment = $assigment;
- $this->questionaire = $questionaire;
- $this->customer = $customer;
- }
- public function toPostParams(): array {
- return array_merge(
- $this->assigment->toPostParams(),
- $this->questionaire->toPostParams(),
- [
- 'customer' => $this->customer->toPostParams()
- ]
- );
- }
- protected static function getClassVars(): array {
- return array_keys(get_class_vars(__CLASS__));
- }
- }
|