Campaign.php
3 years ago
Current_Traffic.php
3 years ago
Device.php
2 years ago
Geo.php
2 years ago
Page.php
2 years ago
Page_Author_Archive.php
3 years ago
Page_Date_Archive.php
3 years ago
Page_Home.php
3 years ago
Page_Not_Found.php
3 years ago
Page_Post_Type_Archive.php
2 years ago
Page_Search.php
3 years ago
Page_Singular.php
2 years ago
Page_Term_Archive.php
3 years ago
Referrer.php
2 years ago
View_Stats.php
2 years ago
Visitor.php
2 years ago
WooCommerce_Stats.php
3 years ago
Current_Traffic.php
47 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP_SCOPED\IAWP\Models; |
| 4 | |
| 5 | class Current_Traffic |
| 6 | { |
| 7 | private $visitor_count; |
| 8 | private $page_count; |
| 9 | private $referrer_count; |
| 10 | private $country_count; |
| 11 | private $campaign_count; |
| 12 | private $view_count; |
| 13 | public function __construct($row) |
| 14 | { |
| 15 | $this->visitor_count = \intval($row->visitor_count); |
| 16 | $this->page_count = \intval($row->page_count); |
| 17 | $this->referrer_count = \intval($row->referrer_count); |
| 18 | $this->country_count = \intval($row->country_count); |
| 19 | $this->campaign_count = \intval($row->campaign_count); |
| 20 | $this->view_count = \intval($row->view_count); |
| 21 | } |
| 22 | public function get_visitor_count() |
| 23 | { |
| 24 | return $this->visitor_count; |
| 25 | } |
| 26 | public function get_page_count() |
| 27 | { |
| 28 | return $this->page_count; |
| 29 | } |
| 30 | public function get_referrer_count() |
| 31 | { |
| 32 | return $this->referrer_count; |
| 33 | } |
| 34 | public function get_country_count() |
| 35 | { |
| 36 | return $this->country_count; |
| 37 | } |
| 38 | public function get_campaign_count() |
| 39 | { |
| 40 | return $this->campaign_count; |
| 41 | } |
| 42 | public function get_view_count() |
| 43 | { |
| 44 | return $this->view_count; |
| 45 | } |
| 46 | } |
| 47 |