1 | <?php |
||
13 | class FacebookPixel |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var int |
||
18 | */ |
||
19 | protected $pixelId; |
||
20 | |||
21 | /** @var AbstractEvent[] */ |
||
22 | private $events = []; |
||
23 | |||
24 | /** |
||
25 | * @return int |
||
26 | */ |
||
27 | 1 | public function getPixelId() |
|
31 | |||
32 | /** |
||
33 | * @param int $pixelId |
||
34 | */ |
||
35 | 1 | public function setPixelId($pixelId) |
|
39 | |||
40 | /** |
||
41 | * @return AbstractEvent[] |
||
42 | */ |
||
43 | public function getEvents() |
||
47 | |||
48 | /** |
||
49 | * @param AbstractEvent[] $events |
||
50 | */ |
||
51 | public function setEvents($events) |
||
55 | |||
56 | /** |
||
57 | * Add Complete Registration event |
||
58 | */ |
||
59 | public function completeRegistration() |
||
63 | |||
64 | /** |
||
65 | * @param AbstractEvent $event |
||
66 | */ |
||
67 | public function addEvent($event) |
||
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | public function render() |
||
79 | |||
80 | /** |
||
81 | * @param string $name |
||
82 | * @return string |
||
83 | */ |
||
84 | protected function renderTemplate($name) |
||
90 | } |
||
91 |