-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathIsbn.php
64 lines (57 loc) · 1.01 KB
/
Isbn.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* ISBN.
*
* @author Wenzel Pünter <[email protected]>
* @author Daniel Mejta <[email protected]>
*
* @version 2.0.0
*/
namespace Isbn;
/**
* ISBN.
*/
class Isbn
{
/**
* Check Instance.
*
* @var Check
*/
public $check;
/**
* Check Digit Instance.
*
* @var CheckDigit
*/
public $checkDigit;
/**
* Hyphens Instance.
*
* @var Hyphens
*/
public $hyphens;
/**
* Translate Instance.
*
* @var Translate
*/
public $translate;
/**
* Validation Instance.
*
* @var Validation
*/
public $validation;
/**
* Constructor.
*/
public function __construct()
{
$this->hyphens = new Hyphens();
$this->check = new Check($this->hyphens);
$this->checkDigit = new CheckDigit($this->hyphens);
$this->translate = new Translate($this->checkDigit);
$this->validation = new Validation($this->check, $this->hyphens);
}
}