noalyss Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
document_reference_type.class.php
Go to the documentation of this file.
1<?php
3
4/*
5 * This file is part of NOALYSS.
6 *
7 * NOALYSS is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * NOALYSS is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with NOALYSS; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20*/
21// Copyright Author Dany De Bontridder danydb@aevalys.eu 22/10/23
22
23
24/**
25 * @file
26 * @brief Document Reference Type ; documents included in a UBL21
27 * xml
28 */
30{
32 public $mimecode;
33 public $filename;
34 function __toString(): string
35 {
36 return "Binary_Object[filecontent=" . $this->filecontent
37 . ", mimecode=" . $this->mimecode
38 . ", filename=" . $this->filename
39 . "]";
40 }
41}
42
44{
45 protected $id;
46 protected $description;
48 function __toString(): string
49 {
50 return "Document_Reference[id=" . $this->id
51 . ", description=" . $this->description
52 . ", binary_object=" . $this->binary_object
53 . "]";
54 }
55 public function getId()
56 {
57 return $this->id;
58 }
59
60 public function getDescription()
61 {
62 return $this->description;
63 }
64
66 {
68 }
69
70 public function setId($id)
71 {
72 $this->id = $id;
73 return $this;
74 }
75
77 {
78 $this->description = $description;
79 return $this;
80 }
81
83 {
84 $this->binary_object = $binary_object;
85 return $this;
86 }
87
88
89
90}