1 <?php
2 /* --------------------------------------------------------------
3 EmptyOrderItemDownloadInformation.inc.php 2015-12-23
4 Gambio GmbH
5 http://www.gambio.de
6 Copyright (c) 2015 Gambio GmbH
7 Released under the GNU General Public License (Version 2)
8 [http://www.gnu.org/licenses/gpl-2.0.html]
9 --------------------------------------------------------------
10 */
11
12
13 /**
14 * Class EmptyOrderItemDownloadInformation
15 *
16 * The purpose of this class is to return empty strings or 0 as integer
17 * as representation of a empty OrderItemDownloadInformation object.
18 *
19 * @category System
20 * @package Order
21 * @subpackage Entities
22 */
23 class EmptyOrderItemDownloadInformation extends OrderItemDownloadInformation
24 {
25 /**
26 * Filename
27 *
28 * @var string
29 */
30 protected $filename = '';
31
32 /**
33 * Maximal number of days for download.
34 *
35 * @var int
36 */
37 protected $maxDaysAllowed = 0;
38
39 /**
40 * Maximal number of possible downloads.
41 *
42 * @var int
43 */
44 protected $countAvailable = 0;
45
46
47 /**
48 * EmptyOrderItemDownloadInformation constructor.
49 *
50 * Override constructor, as no argument are passed, and therefore
51 * no validation is needed in this class.
52 */
53 public function __construct()
54 {
55 }
56
57
58 /**
59 * Returns an empty string as Filename of the download.
60 *
61 * @return string
62 */
63 public function getFilename()
64 {
65 return $this->filename;
66 }
67
68
69 /**
70 * Returns 0 as number of days where downloads are possible.
71 *
72 * @return int
73 */
74 public function getMaxDaysAllowed()
75 {
76 return $this->maxDaysAllowed;
77 }
78
79
80 /**
81 * Returns 0 the number of possible downloads.
82 *
83 * @return int
84 */
85 public function getCountAvailable()
86 {
87 return $this->countAvailable;
88 }
89 }