Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
Complex classes like Capture often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use Capture, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
9 | class Capture extends Entity |
||
10 | { |
||
11 | const PERSON_UDF_COUNT = 50; |
||
12 | const EVENT_UDF_COUNT = 50; |
||
13 | const TOUCH_UDF_COUNT = 20; |
||
14 | |||
15 | const UUID_PATTERN = '/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/i'; |
||
16 | |||
17 | /** |
||
18 | * Set the 'person_udf#' field. |
||
19 | * |
||
20 | * @param int $num Which field to fetch. Can be from 1 till 50 |
||
21 | * @param string $value Custom fields for the Acquia Lift Person Capture Phase |
||
22 | * |
||
23 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
24 | * |
||
25 | * @return \Acquia\LiftClient\Entity\Capture |
||
26 | */ |
||
27 | 24 | View Code Duplication | public function setPersonUdf($num, $value) |
42 | |||
43 | /** |
||
44 | * Set the 'event_udf#' field. |
||
45 | * |
||
46 | * @param int $num Which field to fetch. Can be from 1 till 50 |
||
47 | * @param string $value Custom fields for the Acquia Lift Event Capture Phase |
||
48 | * |
||
49 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
50 | * |
||
51 | * @return \Acquia\LiftClient\Entity\Capture |
||
52 | */ |
||
53 | 27 | View Code Duplication | public function setEventUdf($num, $value) |
68 | |||
69 | /** |
||
70 | * Set the 'touch_udf#' field. |
||
71 | * |
||
72 | * @param int $num Which field to fetch. Can be from 1 till 20 |
||
73 | * @param string $value Custom fields for the Acquia Lift Touch Capture Phase |
||
74 | * |
||
75 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
76 | * |
||
77 | * @return \Acquia\LiftClient\Entity\Capture |
||
78 | */ |
||
79 | 21 | View Code Duplication | public function setTouchUdf($num, $value) |
94 | |||
95 | /** |
||
96 | * Sets the 'event_name' parameter. |
||
97 | * |
||
98 | * @param string $eventName Event name corresponding to the captured information - the event type matching this |
||
99 | * event name must match the master list of events created in Acquia Lift Web |
||
100 | * |
||
101 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
102 | * |
||
103 | * @return \Acquia\LiftClient\Entity\Capture |
||
104 | */ |
||
105 | 18 | public function setEventName($eventName) |
|
114 | |||
115 | /** |
||
116 | * Sets the 'event_source' parameter. |
||
117 | * |
||
118 | * @param string $eventSource Source of the event - can be used to pass event data from tools you have set up to |
||
119 | * send data to Acquia Lift Web (the default Acquia Lift Web value is web; depending on |
||
120 | * your website's configuration, examples may include csrtool1 and promo1) |
||
121 | * |
||
122 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
123 | * |
||
124 | * @return \Acquia\LiftClient\Entity\Capture |
||
125 | */ |
||
126 | 18 | public function setEventSource($eventSource) |
|
135 | |||
136 | /** |
||
137 | * Sets the 'event_date' parameter. |
||
138 | * |
||
139 | * @param DateTime $eventDate |
||
140 | * |
||
141 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
142 | * |
||
143 | * @return \Acquia\LiftClient\Entity\Capture |
||
144 | */ |
||
145 | 15 | View Code Duplication | public function setEventDate(DateTime $eventDate) |
159 | |||
160 | /** |
||
161 | * Sets the 'identities' parameter. |
||
162 | * |
||
163 | * @param array $identities Additional identity information |
||
164 | * |
||
165 | * Example of how to structure the $identities parameter: |
||
166 | * <code> |
||
167 | * $options = [ |
||
168 | * '[email protected]' => 'email', |
||
169 | * 'John Smith' => 'name', |
||
170 | * ]; |
||
171 | 18 | * </code> |
|
172 | * |
||
173 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
174 | 3 | * |
|
175 | * @return \Acquia\LiftClient\Entity\Capture |
||
176 | 15 | */ |
|
177 | public function setIdentities(array $identities) |
||
186 | |||
187 | /** |
||
188 | * Sets the 'url' parameter. |
||
189 | * |
||
190 | 18 | * @param string $url Event's URL |
|
191 | * |
||
192 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
193 | 3 | * |
|
194 | * @return \Acquia\LiftClient\Entity\Capture |
||
195 | 15 | */ |
|
196 | public function setUrl($url) |
||
205 | |||
206 | /** |
||
207 | * Sets the 'referral_url' parameter. |
||
208 | * |
||
209 | 18 | * @param string $referralUrl Referrer's URL |
|
210 | * |
||
211 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
212 | 3 | * |
|
213 | * @return \Acquia\LiftClient\Entity\Capture |
||
214 | 15 | */ |
|
215 | public function setReferralUrl($referralUrl) |
||
224 | |||
225 | /** |
||
226 | * Sets the 'content_title' parameter. |
||
227 | * |
||
228 | 18 | * @param string $contentTitle Page title |
|
229 | * |
||
230 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
231 | 3 | * |
|
232 | * @return \Acquia\LiftClient\Entity\Capture |
||
233 | 15 | */ |
|
234 | public function setContentTitle($contentTitle) |
||
243 | |||
244 | /** |
||
245 | * Sets the 'user_agent' parameter. |
||
246 | * |
||
247 | 18 | * @param string $userAgent Visitor's user agent |
|
248 | * |
||
249 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
250 | 3 | * |
|
251 | * @return \Acquia\LiftClient\Entity\Capture |
||
252 | 15 | */ |
|
253 | public function setUserAgent($userAgent) |
||
262 | |||
263 | /** |
||
264 | * Sets the 'platform' parameter. |
||
265 | * |
||
266 | 18 | * @param string $platform Visitor's platform |
|
267 | * |
||
268 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
269 | 3 | * |
|
270 | * @return \Acquia\LiftClient\Entity\Capture |
||
271 | 15 | */ |
|
272 | public function setPlatform($platform) |
||
281 | |||
282 | /** |
||
283 | * Sets the 'ip_address' parameter. |
||
284 | * |
||
285 | 21 | * @param string $ipAddress Visitor's IP address (supports both IPv4 and IPv6 addresses) |
|
286 | * |
||
287 | 21 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
288 | 3 | * |
|
289 | * @return \Acquia\LiftClient\Entity\Capture |
||
290 | 18 | */ |
|
291 | public function setIpAddress($ipAddress) |
||
300 | |||
301 | /** |
||
302 | * Sets the 'persona' parameter. |
||
303 | * |
||
304 | * @param string $persona User-defined category into which a visitor fits, based on their viewing of particular |
||
305 | 18 | * content |
|
306 | * |
||
307 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
308 | 3 | * |
|
309 | * @return \Acquia\LiftClient\Entity\Capture |
||
310 | 15 | */ |
|
311 | public function setPersona($persona) |
||
320 | |||
321 | /** |
||
322 | * Sets the 'engagement_score' parameter. |
||
323 | * |
||
324 | * @param int $engagementScore The number that you have chosen to signify the importance of a visitor's interest in |
||
325 | 18 | * an event |
|
326 | * |
||
327 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
328 | 3 | * |
|
329 | * @return \Acquia\LiftClient\Entity\Capture |
||
330 | 15 | */ |
|
331 | public function setEngagementScore($engagementScore) |
||
340 | |||
341 | /** |
||
342 | * Sets the 'personalization_name' parameter. |
||
343 | * |
||
344 | * @param string $personalizationName Name of personalization associated with an event |
||
345 | * |
||
346 | * @deprecated Only used in Lift 2. For Lift 3, please use fields with prefix decision |
||
347 | * |
||
348 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
349 | * |
||
350 | * @return \Acquia\LiftClient\Entity\Capture |
||
351 | */ |
||
352 | public function setPersonalizationName($personalizationName) |
||
361 | |||
362 | /** |
||
363 | * Sets the 'personalization_machine_name' parameter. |
||
364 | * |
||
365 | * @param string $personalizationMachineName Machine name of personalization associated with an event |
||
366 | * |
||
367 | * @deprecated Only used in Lift 2. For Lift 3, please use fields with prefix decision |
||
368 | * |
||
369 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
370 | * |
||
371 | * @return \Acquia\LiftClient\Entity\Capture |
||
372 | */ |
||
373 | public function setPersonalizationMachineName($personalizationMachineName) |
||
382 | |||
383 | /** |
||
384 | * Sets the 'personalization_chosen_variation' parameter. |
||
385 | * |
||
386 | * @param string $personalizationChosenVariation The variation (decision) chosen for an event |
||
387 | * |
||
388 | * @deprecated Only used in Lift 2. For Lift 3, please use fields with prefix decision |
||
389 | * |
||
390 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
391 | * |
||
392 | * @return \Acquia\LiftClient\Entity\Capture |
||
393 | */ |
||
394 | public function setPersonalizationChosenVariation($personalizationChosenVariation) |
||
403 | |||
404 | /** |
||
405 | * Sets the 'personalization_audience_name' parameter. |
||
406 | * |
||
407 | * @param string $personalizationAudienceName The name of the audience |
||
408 | * |
||
409 | * @deprecated Only used in Lift 2. For Lift 3, please use fields with prefix decision |
||
410 | * |
||
411 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
412 | * |
||
413 | * @return \Acquia\LiftClient\Entity\Capture |
||
414 | */ |
||
415 | public function setPersonalizationAudienceName($personalizationAudienceName) |
||
424 | |||
425 | /** |
||
426 | * Sets the 'personalization_decision_policy' parameter. |
||
427 | * |
||
428 | * @param string $personalizationDecisionPolicy The decision policy used - for example, explore or target |
||
429 | * |
||
430 | * @deprecated Only used in Lift 2. For Lift 3, please use fields with prefix decision |
||
431 | * |
||
432 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
433 | * |
||
434 | * @return \Acquia\LiftClient\Entity\Capture |
||
435 | */ |
||
436 | public function setPersonalizationDecisionPolicy($personalizationDecisionPolicy) |
||
445 | |||
446 | /** |
||
447 | * Sets the 'personalization_goal_name' parameter. |
||
448 | * |
||
449 | * @param string $personalizationGoalName The name of the goal reached |
||
450 | * |
||
451 | * @deprecated Only used in Lift 2. For Lift 3, please use fields with prefix decision |
||
452 | * |
||
453 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
454 | * |
||
455 | * @return \Acquia\LiftClient\Entity\Capture |
||
456 | */ |
||
457 | public function setPersonalizationGoalName($personalizationGoalName) |
||
466 | |||
467 | /** |
||
468 | * Sets the 'personalization_goal_value' parameter. |
||
469 | * |
||
470 | * @param string $personalizationGoalValue The value of the goal reached |
||
471 | * |
||
472 | * @deprecated Only used in Lift 2. For Lift 3, please use fields with prefix decision |
||
473 | * |
||
474 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
475 | * |
||
476 | * @return \Acquia\LiftClient\Entity\Capture |
||
477 | */ |
||
478 | public function setPersonalizationGoalValue($personalizationGoalValue) |
||
487 | |||
488 | /** |
||
489 | * Sets the 'decision_slot_id' parameter. |
||
490 | * |
||
491 | 18 | * @param string $decisionSlotId Decision Slot Id |
|
492 | * |
||
493 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
494 | 3 | * |
|
495 | * @return \Acquia\LiftClient\Entity\Capture |
||
496 | 15 | */ |
|
497 | public function setDecisionSlotId($decisionSlotId) |
||
506 | |||
507 | /** |
||
508 | * Sets the 'decision_slot_name' parameter. |
||
509 | * |
||
510 | 18 | * @param string $decisionSlotName Decision Slot Name |
|
511 | * |
||
512 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
513 | 3 | * |
|
514 | * @return \Acquia\LiftClient\Entity\Capture |
||
515 | 15 | */ |
|
516 | public function setDecisionSlotName($decisionSlotName) |
||
525 | |||
526 | /** |
||
527 | * Sets the 'decision_rule_id' parameter. |
||
528 | * |
||
529 | 18 | * @param string $decisionRuleId Decision Slot Name |
|
530 | * |
||
531 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
532 | 3 | * |
|
533 | * @return \Acquia\LiftClient\Entity\Capture |
||
534 | 15 | */ |
|
535 | public function setDecisionRuleId($decisionRuleId) |
||
544 | |||
545 | /** |
||
546 | * Sets the 'decision_rule_name' parameter. |
||
547 | * |
||
548 | 18 | * @param string $decisionRuleName Decision Slot Name |
|
549 | * |
||
550 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
551 | 3 | * |
|
552 | * @return \Acquia\LiftClient\Entity\Capture |
||
553 | 15 | */ |
|
554 | public function setDecisionRuleName($decisionRuleName) |
||
563 | |||
564 | /** |
||
565 | * Sets the 'decision_content_id' parameter. |
||
566 | * |
||
567 | 18 | * @param string $decisionContentId Decision Content Id |
|
568 | * |
||
569 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
570 | 3 | * |
|
571 | * @return \Acquia\LiftClient\Entity\Capture |
||
572 | 15 | */ |
|
573 | public function setDecisionContentId($decisionContentId) |
||
582 | |||
583 | /** |
||
584 | * Sets the 'decision_content_name' parameter. |
||
585 | * |
||
586 | 18 | * @param string $decisionContentName Decision Content Name |
|
587 | * |
||
588 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
589 | 3 | * |
|
590 | * @return \Acquia\LiftClient\Entity\Capture |
||
591 | 15 | */ |
|
592 | public function setDecisionContentName($decisionContentName) |
||
601 | |||
602 | /** |
||
603 | * Sets the 'decision_goal_id' parameter. |
||
604 | * |
||
605 | 18 | * @param string $decisionGoalId Decision Goal Id |
|
606 | * |
||
607 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
608 | 3 | * |
|
609 | * @return \Acquia\LiftClient\Entity\Capture |
||
610 | 15 | */ |
|
611 | public function setDecisionGoalId($decisionGoalId) |
||
620 | |||
621 | /** |
||
622 | * Sets the 'decision_goal_name' parameter. |
||
623 | * |
||
624 | 18 | * @param string $decisionGoalName Decision Goal Name |
|
625 | * |
||
626 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
627 | 3 | * |
|
628 | * @return \Acquia\LiftClient\Entity\Capture |
||
629 | 15 | */ |
|
630 | public function setDecisionGoalName($decisionGoalName) |
||
639 | |||
640 | /** |
||
641 | * Sets the 'decision_goal_value' parameter. |
||
642 | * |
||
643 | 18 | * @param string $decisionGoalValue Decision Goal Value |
|
644 | * |
||
645 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
646 | 3 | * |
|
647 | * @return \Acquia\LiftClient\Entity\Capture |
||
648 | 15 | */ |
|
649 | public function setDecisionGoalValue($decisionGoalValue) |
||
658 | |||
659 | /** |
||
660 | * Sets the 'decision_view_mode' parameter. |
||
661 | * |
||
662 | 18 | * @param string $decisionViewMode Decision View Mode |
|
663 | * |
||
664 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
665 | 3 | * |
|
666 | * @return \Acquia\LiftClient\Entity\Capture |
||
667 | 15 | */ |
|
668 | public function setDecisionViewMode($decisionViewMode) |
||
677 | |||
678 | /** |
||
679 | * Sets the 'decision_policy' parameter. |
||
680 | * |
||
681 | 18 | * @param string $decisionPolicy The decision policy used - for example, explore or target |
|
682 | * |
||
683 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
684 | 3 | * |
|
685 | * @return \Acquia\LiftClient\Entity\Capture |
||
686 | 15 | */ |
|
687 | public function setDecisionPolicy($decisionPolicy) |
||
696 | |||
697 | /** |
||
698 | * Sets the 'capture_identifier' parameter. |
||
699 | * |
||
700 | 18 | * @param string $captureIdentifier Unique identifier for the capture |
|
701 | * |
||
702 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
703 | 3 | * |
|
704 | * @return \Acquia\LiftClient\Entity\Capture |
||
705 | 15 | */ |
|
706 | public function setCaptureIdentifier($captureIdentifier) |
||
715 | |||
716 | /** |
||
717 | * Sets the 'client_timezone' parameter. |
||
718 | * |
||
719 | 18 | * @param string $clientTimezone Client Timezone |
|
720 | * |
||
721 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
722 | 3 | * |
|
723 | * @return \Acquia\LiftClient\Entity\Capture |
||
724 | 15 | */ |
|
725 | public function setClientTimezone($clientTimezone) |
||
734 | |||
735 | /** |
||
736 | * Sets the 'javascript_version' parameter. |
||
737 | * |
||
738 | 18 | * @param string $javascriptVersion version of the javascript that generated the capture |
|
739 | * |
||
740 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
741 | 3 | * |
|
742 | * @return \Acquia\LiftClient\Entity\Capture |
||
743 | 15 | */ |
|
744 | public function setJavascriptVersion($javascriptVersion) |
||
753 | |||
754 | /** |
||
755 | * Sets the 'post_id' parameter. |
||
756 | * |
||
757 | 18 | * @param string $postId Post id of an article |
|
758 | * |
||
759 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
760 | 3 | * |
|
761 | * @return \Acquia\LiftClient\Entity\Capture |
||
762 | 15 | */ |
|
763 | public function setPostId($postId) |
||
772 | |||
773 | /** |
||
774 | * Sets the 'content_id' parameter. |
||
775 | * |
||
776 | 18 | * @param string $contentId Content id of an article |
|
777 | * |
||
778 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
779 | 3 | * |
|
780 | * @return \Acquia\LiftClient\Entity\Capture |
||
781 | 15 | */ |
|
782 | View Code Duplication | public function setContentId($contentId) |
|
791 | |||
792 | /** |
||
793 | * Sets the 'content_uuid' parameter. |
||
794 | * |
||
795 | 18 | * @param string $contentUuid UUID of an article |
|
796 | * |
||
797 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
798 | 3 | * |
|
799 | * @return \Acquia\LiftClient\Entity\Capture |
||
800 | 15 | */ |
|
801 | public function setContentUuid($contentUuid) |
||
810 | |||
811 | /** |
||
812 | * Sets the 'content_type' parameter. |
||
813 | * |
||
814 | 18 | * @param string $contentType Content-type to which a piece of visitor-viewed content belongs |
|
815 | * |
||
816 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
817 | 3 | * |
|
818 | * @return \Acquia\LiftClient\Entity\Capture |
||
819 | 15 | */ |
|
820 | public function setContentType($contentType) |
||
829 | |||
830 | /** |
||
831 | * Sets the 'content_section' parameter. |
||
832 | * |
||
833 | 18 | * @param string $contentSection Content section of an article |
|
834 | * |
||
835 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
836 | 3 | * |
|
837 | * @return \Acquia\LiftClient\Entity\Capture |
||
838 | 15 | */ |
|
839 | public function setContentSection($contentSection) |
||
848 | |||
849 | /** |
||
850 | * Sets the 'content_keywords' parameter. |
||
851 | * |
||
852 | 18 | * @param string $contentKeywords Content keywords of an article |
|
853 | * |
||
854 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
855 | 3 | * |
|
856 | * @return \Acquia\LiftClient\Entity\Capture |
||
857 | 15 | */ |
|
858 | public function setContentKeywords($contentKeywords) |
||
867 | |||
868 | /** |
||
869 | * Sets the 'author' parameter. |
||
870 | * |
||
871 | 24 | * @param string $author Author of an article |
|
872 | * |
||
873 | 24 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
874 | 3 | * |
|
875 | * @return \Acquia\LiftClient\Entity\Capture |
||
876 | 21 | */ |
|
877 | public function setAuthor($author) |
||
886 | |||
887 | /** |
||
888 | * Sets the 'page_type' parameter. |
||
889 | * |
||
890 | 18 | * @param string $pageType Category of page the visitor viewed (examples include article page, tag page, and home page) |
|
891 | * |
||
892 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
893 | 3 | * |
|
894 | * @return \Acquia\LiftClient\Entity\Capture |
||
895 | 15 | */ |
|
896 | public function setPageType($pageType) |
||
905 | |||
906 | /** |
||
907 | * Sets the 'thumbnail_url' parameter. |
||
908 | * |
||
909 | 18 | * @param string $thumbnailUrl Thumbnail URL of an article |
|
910 | * |
||
911 | 18 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
|
912 | 3 | * |
|
913 | * @return \Acquia\LiftClient\Entity\Capture |
||
914 | 15 | */ |
|
915 | public function setThumbnailUrl($thumbnailUrl) |
||
924 | |||
925 | /** |
||
926 | * Sets the 'published_date' parameter. |
||
927 | * |
||
928 | 15 | * @param DateTime $publishedDate Publish date of an article |
|
929 | * |
||
930 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
931 | * |
||
932 | 15 | * @return \Acquia\LiftClient\Entity\Capture |
|
933 | */ |
||
934 | 15 | View Code Duplication | public function setPublishedDate(DateTime $publishedDate) |
949 | } |
||
950 |