PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.8
GiveWP – Donation Plugin and Fundraising Platform v4.16.8
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / src / Tracking / TrackingData / WebsiteInfoData.php
WebsiteInfoData.php
49 lines 863 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\Tracking\TrackingData;
4
5 use Give\Tracking\Contracts\TrackData;
6
7 /**
8 * Class WebsiteInfoData
9 * @package Give\Tracking\TrackingData
10 *
11 * @since 2.10.0
12 */
13 class WebsiteInfoData implements TrackData
14 {
15
16 /**
17 * @var ServerData
18 */
19 private $serverData;
20
21 /**
22 * @var WebsiteData
23 */
24 private $websiteData;
25
26 /**
27 * WebsiteInfoData constructor.
28 *
29 * @param WebsiteData $websiteData
30 * @param ServerData $serverData
31 */
32 public function __construct(WebsiteData $websiteData, ServerData $serverData)
33 {
34 $this->websiteData = $websiteData;
35 $this->serverData = $serverData;
36 }
37
38 /**
39 * @return array
40 */
41 public function get()
42 {
43 return array_merge(
44 $this->websiteData->get(),
45 $this->serverData->get()
46 );
47 }
48 }
49