@@ 25-39 (lines=15) @@ | ||
22 | * |
|
23 | * @return \Acquia\LiftClient\Entity\Capture |
|
24 | */ |
|
25 | public function setPersonUdf($num, $value) |
|
26 | { |
|
27 | if (!is_int($num)) { |
|
28 | throw new LiftSdkException('Argument must be an instance of integer.'); |
|
29 | } |
|
30 | if ($num < 1 || $num > self::PERSON_UDF_COUNT) { |
|
31 | throw new LiftSdkException('Argument must be greater than 0 and smaller or equal to 50.'); |
|
32 | } |
|
33 | if (!is_string($value)) { |
|
34 | throw new LiftSdkException('Argument must be an instance of string.'); |
|
35 | } |
|
36 | $this['person_udf'.$num] = $value; |
|
37 | ||
38 | return $this; |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * Set the 'event_udf#' field. |
|
@@ 51-65 (lines=15) @@ | ||
48 | * |
|
49 | * @return \Acquia\LiftClient\Entity\Capture |
|
50 | */ |
|
51 | public function setEventUdf($num, $value) |
|
52 | { |
|
53 | if (!is_int($num)) { |
|
54 | throw new LiftSdkException('Argument must be an instance of integer.'); |
|
55 | } |
|
56 | if ($num < 1 || $num > self::EVENT_UDF_COUNT) { |
|
57 | throw new LiftSdkException('Argument must be greater than 0 and smaller or equal to 50.'); |
|
58 | } |
|
59 | if (!is_string($value)) { |
|
60 | throw new LiftSdkException('Argument must be an instance of string.'); |
|
61 | } |
|
62 | $this['event_udf'.$num] = $value; |
|
63 | ||
64 | return $this; |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * Set the 'touch_udf#' field. |
|
@@ 77-91 (lines=15) @@ | ||
74 | * |
|
75 | * @return \Acquia\LiftClient\Entity\Capture |
|
76 | */ |
|
77 | public function setTouchUdf($num, $value) |
|
78 | { |
|
79 | if (!is_int($num)) { |
|
80 | throw new LiftSdkException('Argument must be an instance of integer.'); |
|
81 | } |
|
82 | if ($num < 1 || $num > self::TOUCH_UDF_COUNT) { |
|
83 | throw new LiftSdkException('Argument must be greater than 0 and smaller or equal to 50.'); |
|
84 | } |
|
85 | if (!is_string($value)) { |
|
86 | throw new LiftSdkException('Argument must be an instance of string.'); |
|
87 | } |
|
88 | $this['event_udf'.$num] = $value; |
|
89 | ||
90 | return $this; |
|
91 | } |
|
92 | ||
93 | /** |
|
94 | * Sets the 'event_name' parameter. |