Merge pull request #22992 from eileenmcnaughton/billingnot
[civicrm-core.git] / Civi / Api4 / Generic / Traits / IsCurrentTrait.php
CommitLineData
19b53e5b 1<?php
380f3545
TO
2
3/*
4 +--------------------------------------------------------------------+
41498ac5 5 | Copyright CiviCRM LLC. All rights reserved. |
380f3545 6 | |
41498ac5
TO
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
380f3545
TO
10 +--------------------------------------------------------------------+
11 */
19b53e5b
C
12namespace Civi\Api4\Generic\Traits;
13
14/**
9c961a3a 15 * @deprecated
19b53e5b
C
16 * @see \Civi\Api4\Event\Subscriber\IsCurrentSubscriber
17 */
18trait IsCurrentTrait {
19
20 /**
9c961a3a 21 * Param deprecated in favor of is_current filter.
19b53e5b
C
22 *
23 * @var bool
9c961a3a 24 * @deprecated
19b53e5b
C
25 */
26 protected $current;
27
28 /**
9c961a3a 29 * @deprecated
19b53e5b
C
30 * @return bool
31 */
32 public function getCurrent() {
33 return $this->current;
34 }
35
36 /**
9c961a3a 37 * @deprecated
19b53e5b
C
38 * @param bool $current
39 * @return $this
40 */
41 public function setCurrent($current) {
42 $this->current = $current;
43 return $this;
44 }
45
46}