$value){ if(!property_exists(self::class,$key)) unset($config[$key]); elseif($value==null || $value===false || $value=='') unset($config[$key]); } $this->constructArray=$config; parent::__construct($config); } public function toJson(): string { $resultJson=" '; return $resultJson; } }