<?php
namespace ModulesAbstract\ElectronicInvoice\UBL21Structure; class AbstractPeppolElementWithOneValue extends AbstractPeppolElement { public $value = null; public function getAttributes() { $members = array_keys(get_object_vars($this)); $members = array_filter($members, function ($k) { return $k!='value'; }); return array_combine($members, $members); } public function getChilds() { return ['value' => null]; } } 