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__)); } }