FapiLevels.php
2 years ago
FapiMemberTools.php
2 years ago
FapiMembership.php
2 years ago
FapiTermEnvelope.php
2 years ago
FapiTermEnvelope.php
43 lines
| 1 | <?php |
| 2 | |
| 3 | namespace FapiMember\Deprecated; |
| 4 | |
| 5 | use WP_Term; |
| 6 | |
| 7 | /** @deprecated */ |
| 8 | final class FapiTermEnvelope { |
| 9 | |
| 10 | |
| 11 | /** @var WP_Term */ |
| 12 | private $term; |
| 13 | |
| 14 | /** @var int */ |
| 15 | private $order; |
| 16 | |
| 17 | /** |
| 18 | * FapiTermEnvelope constructor. |
| 19 | * |
| 20 | * @param WP_Term $term |
| 21 | * @param int $order |
| 22 | */ |
| 23 | public function __construct( $term, $order ) { |
| 24 | $this->term = $term; |
| 25 | $this->order = $order; |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * @return WP_Term |
| 30 | */ |
| 31 | public function getTerm() { |
| 32 | return $this->term; |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * @return int |
| 37 | */ |
| 38 | public function getOrder() { |
| 39 | return $this->order; |
| 40 | } |
| 41 | |
| 42 | } |
| 43 |