| Total Complexity | 5 |
| Total Lines | 74 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 8 | class EmailTrafficStatistics |
||
| 9 | { |
||
| 10 | const SPAM_ALERT_SENT = 'spam_alert_sent'; |
||
| 11 | /** |
||
| 12 | * @var int |
||
| 13 | */ |
||
| 14 | private $id; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $action; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var \DateTime |
||
| 23 | */ |
||
| 24 | private $created; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get id. |
||
| 28 | * |
||
| 29 | * @return int |
||
| 30 | */ |
||
| 31 | public function getId() |
||
| 32 | { |
||
| 33 | return $this->id; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Set action. |
||
| 38 | * |
||
| 39 | * @param string $action |
||
| 40 | * |
||
| 41 | * @return EmailTrafficStatistics |
||
| 42 | */ |
||
| 43 | public function setAction($action) |
||
| 44 | { |
||
| 45 | $this->action = $action; |
||
| 46 | |||
| 47 | return $this; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Get $action. |
||
| 52 | * |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getAction() |
||
| 56 | { |
||
| 57 | return $this->action; |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Set created. |
||
| 62 | * |
||
| 63 | * @param \DateTime $created |
||
| 64 | * |
||
| 65 | * @return EmailTrafficStatistics |
||
| 66 | */ |
||
| 67 | public function setCreated($created) |
||
| 72 | } |
||
| 73 | |||
| 74 | /** |
||
| 75 | * Get created. |
||
| 76 | * |
||
| 77 | * @return \DateTime |
||
| 78 | */ |
||
| 79 | public function getCreated() |
||
| 82 | } |
||
| 83 | } |
||
| 84 |