| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class IsbnBanValidator implements CompleteValidatorInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Exclusion requête BnF/Google/etc |
||
| 17 | * Format EAN ou ISBN10 sans tiret. |
||
| 18 | */ |
||
| 19 | public const ISBN_EAN_SKIP |
||
| 20 | = [ |
||
| 21 | '9782918758440', // Profils de lignes du réseau ferré français vol.2 |
||
| 22 | '9782918758341', // Profils de lignes du réseau ferré français vol.1 |
||
| 23 | '285608043X', // Dictionnaire encyclopédique d'électronique (langue erronée) |
||
| 24 | '9782021401196', // sous-titre erroné |
||
| 25 | ]; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $isbn; |
||
| 31 | /** |
||
| 32 | * @var string|null |
||
| 33 | */ |
||
| 34 | protected $isbn10; |
||
| 35 | |||
| 36 | public function __construct(string $isbn, ?string $isbn10 = null) |
||
| 40 | } |
||
| 41 | |||
| 42 | public function validate(): bool |
||
| 50 | } |