1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* This file is part of byrokrat\giroapp. |
4
|
|
|
* |
5
|
|
|
* byrokrat\giroapp is free software: you can redistribute it and/or |
6
|
|
|
* modify it under the terms of the GNU General Public License as published |
7
|
|
|
* by the Free Software Foundation, either version 3 of the License, or |
8
|
|
|
* (at your option) any later version. |
9
|
|
|
* |
10
|
|
|
* byrokrat\giroapp is distributed in the hope that it will be useful, |
11
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
12
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13
|
|
|
* GNU General Public License for more details. |
14
|
|
|
* |
15
|
|
|
* You should have received a copy of the GNU General Public License |
16
|
|
|
* along with byrokrat\giroapp. If not, see <http://www.gnu.org/licenses/>. |
17
|
|
|
* |
18
|
|
|
* Copyright 2016-18 Hannes Forsgård |
19
|
|
|
*/ |
20
|
|
|
|
21
|
|
|
declare(strict_types = 1); |
22
|
|
|
|
23
|
|
|
namespace byrokrat\giroapp\Utils; |
24
|
|
|
|
25
|
|
|
use byrokrat\giroapp\Exception\InvalidSettingException; |
26
|
|
|
use byrokrat\id\IdInterface; |
27
|
|
|
|
28
|
|
|
class MissingOrgId implements IdInterface |
29
|
|
|
{ |
30
|
|
|
private const MESSAGE = 'Missing or invalid organization id number'; |
31
|
|
|
|
32
|
|
|
public function getId(): string |
33
|
|
|
{ |
34
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
35
|
|
|
} |
36
|
|
|
|
37
|
|
|
public function __tostring(): string |
38
|
|
|
{ |
39
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
40
|
|
|
} |
41
|
|
|
|
42
|
|
|
public function format(string $format): string |
43
|
|
|
{ |
44
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
45
|
|
|
} |
46
|
|
|
|
47
|
|
|
public function getSerialPreDelimiter(): string |
48
|
|
|
{ |
49
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
public function getSerialPostDelimiter(): string |
53
|
|
|
{ |
54
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
public function getDelimiter(): string |
58
|
|
|
{ |
59
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
public function getCheckDigit(): string |
63
|
|
|
{ |
64
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
public function getBirthDate(): \DateTimeImmutable |
68
|
|
|
{ |
69
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
public function getAge(\DateTimeInterface $atDate = null): int |
73
|
|
|
{ |
74
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
public function getCentury(): string |
78
|
|
|
{ |
79
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
public function getSex(): string |
83
|
|
|
{ |
84
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
public function isMale(): bool |
88
|
|
|
{ |
89
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
public function isFemale(): bool |
93
|
|
|
{ |
94
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
public function isSexOther(): bool |
98
|
|
|
{ |
99
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
public function isSexUndefined(): bool |
103
|
|
|
{ |
104
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
105
|
|
|
} |
106
|
|
|
|
107
|
|
|
public function getBirthCounty(): string |
108
|
|
|
{ |
109
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
public function getLegalForm(): string |
113
|
|
|
{ |
114
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
115
|
|
|
} |
116
|
|
|
|
117
|
|
|
public function isLegalFormUndefined(): bool |
118
|
|
|
{ |
119
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
public function isStateOrParish(): bool |
123
|
|
|
{ |
124
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
public function isIncorporated(): bool |
128
|
|
|
{ |
129
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
130
|
|
|
} |
131
|
|
|
|
132
|
|
|
public function isPartnership(): bool |
133
|
|
|
{ |
134
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
public function isAssociation(): bool |
138
|
|
|
{ |
139
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
public function isNonProfit(): bool |
143
|
|
|
{ |
144
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
145
|
|
|
} |
146
|
|
|
|
147
|
|
|
public function isTradingCompany(): bool |
148
|
|
|
{ |
149
|
|
|
throw new InvalidSettingException(self::MESSAGE); |
150
|
|
|
} |
151
|
|
|
} |
152
|
|
|
|