| Total Complexity | 7 |
| Total Lines | 83 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Header |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Customer Code |
||
| 17 | * |
||
| 18 | * @var Customer |
||
| 19 | */ |
||
| 20 | private $customer; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * File date creation |
||
| 24 | * |
||
| 25 | * @var DateTime |
||
| 26 | */ |
||
| 27 | private $created; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Sequencial number of file |
||
| 31 | * |
||
| 32 | * @var Sequence |
||
| 33 | */ |
||
| 34 | private $sequence; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Constructor |
||
| 38 | * |
||
| 39 | * @param Customer $customer |
||
| 40 | * @param Sequence $sequence |
||
| 41 | * @param DateTime $created |
||
| 42 | */ |
||
| 43 | 6 | public function __construct(Customer $customer, Sequence $sequence, DateTime $created) |
|
| 44 | { |
||
| 45 | 6 | $this->customer = $customer; |
|
| 46 | 6 | $this->sequence = $sequence; |
|
| 47 | 6 | $this->created = $created; |
|
| 48 | 6 | } |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @return Customer |
||
| 52 | */ |
||
| 53 | 1 | public function getCustomer() |
|
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param Customer $customer |
||
| 60 | */ |
||
| 61 | 1 | public function setCustomer(Customer $customer) |
|
| 62 | { |
||
| 63 | 1 | $this->customer = $customer; |
|
| 64 | 1 | } |
|
| 65 | |||
| 66 | /** |
||
| 67 | * @return DateTime |
||
| 68 | */ |
||
| 69 | 1 | public function getCreated() |
|
| 70 | { |
||
| 71 | 1 | return $this->created; |
|
| 72 | } |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @param DateTime $created |
||
| 76 | */ |
||
| 77 | 1 | public function setCreated(DateTime $created) |
|
| 78 | { |
||
| 79 | 1 | $this->created = $created; |
|
| 80 | 1 | } |
|
| 81 | |||
| 82 | /** |
||
| 83 | * @return Sequence |
||
| 84 | */ |
||
| 85 | 1 | public function getSequence() |
|
| 86 | { |
||
| 87 | 1 | return $this->sequence; |
|
| 88 | } |
||
| 89 | |||
| 90 | /** |
||
| 91 | * @param Sequence $sequence |
||
| 92 | */ |
||
| 93 | 1 | public function setSequence(Sequence $sequence) |
|
| 96 | 1 | } |
|
| 97 | } |
||
| 98 |