public function __construct(DataBuilder $dataBuilder) { $this->title = $dataBuilder->getTitle(); $this->id = $dataBuilder->getId(); $this->supplier = $dataBuilder->getSupplier(); $this->customer = $dataBuilder->getCustomer(); $this->variableSymbol = $dataBuilder->getVariableSymbol(); $this->constantSymbol = $dataBuilder->getConstantSymbol(); $this->specificSymbol = $dataBuilder->getSpecificSymbol(); $this->expirationDate = $dataBuilder->getExpirationDate(); $this->dateOfIssuance = $dataBuilder->getDateOfIssuance(); $this->dateOfVatRevenueRecognition = $dataBuilder->getDateOfVatRevenueRecognition(); $this->items = $dataBuilder->getItems(); }