Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function __construct(Customer $customer, $trackingType, $trackingData, $timestamp = false, $ip = false) |
||
26 | { |
||
27 | $this->customer = $customer; |
||
28 | $this->trackingType = $trackingType; |
||
29 | $this->trackingData = $trackingData; |
||
30 | if (!$timestamp) { $timestamp = time(); |
||
31 | } |
||
32 | $this->timestamp = $timestamp; |
||
33 | $this->ip = $ip; |
||
34 | } |
||
35 | |||
53 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.