PluginProbe
User Access Manager / 2.1.11
User Access Manager v2.1.11
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
← All changes | src/UserGroup/AssignmentInformation.php +76 -14 trunk → 2.1.11 View file →
@@ -1,41 +1,103 @@
1 1 <?php
2 -
3 -declare(strict_types=1);
4 -
2 +/**
3 + * AssignmentInformation.php
4 + *
5 + * The AssignmentInformation class file.
6 + *
7 + * PHP versions 5
8 + *
9 + * @author Alexander Schneider <[email protected]>
10 + * @copyright 2008-2017 Alexander Schneider
11 + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2
12 + * @version SVN: $id$
13 + * @link http://wordpress.org/extend/plugins/user-access-manager/
14 + */
5 15 namespace UserAccessManager\UserGroup;
6 16
17 +/**
18 + * Class AssignmentInformation
19 + *
20 + * @package UserAccessManager\UserGroup
21 + */
7 22 class AssignmentInformation
8 23 {
9 - public function __construct(
10 - private ?string $type = null,
11 - private ?string $fromDate = null,
12 - private ?string $toDate = null,
13 - private array $recursiveMembership = []
14 - ) {
24 + /**
25 + * @var string
26 + */
27 + private $type;
28 +
29 + /**
30 + * @var null|string
31 + */
32 + private $fromDate;
33 +
34 + /**
35 + * @var null|string
36 + */
37 + private $toDate;
38 +
39 + /**
40 + * @var array
41 + */
42 + private $recursiveMembership;
43 +
44 + /**
45 + * AssignmentInformation constructor.
46 + *
47 + * @param string $type
48 + * @param string $fromDate
49 + * @param string $toDate
50 + * @param array $recursiveMembership
51 + */
52 + public function __construct($type = null, $fromDate = null, $toDate = null, array $recursiveMembership = [])
53 + {
54 + $this->type = $type;
55 + $this->fromDate = $fromDate;
56 + $this->toDate = $toDate;
57 + $this->recursiveMembership = $recursiveMembership;
15 58 }
16 59
17 - public function getType(): ?string
60 + /**
61 + * @return string
62 + */
63 + public function getType()
18 64 {
19 65 return $this->type;
20 66 }
21 67
22 - public function getFromDate(): ?string
68 + /**
69 + * @return null|string
70 + */
71 + public function getFromDate()
23 72 {
24 73 return $this->fromDate;
25 74 }
26 75
27 - public function getToDate(): ?string
76 + /**
77 + * @return null|string
78 + */
79 + public function getToDate()
28 80 {
29 81 return $this->toDate;
30 82 }
31 83
32 - public function setRecursiveMembership(array $recursiveMembership): void
84 + /**
85 + * @param array $recursiveMembership
86 + *
87 + * @return $this
88 + */
89 + public function setRecursiveMembership(array $recursiveMembership)
33 90 {
34 91 $this->recursiveMembership = $recursiveMembership;
92 +
93 + return $this;
35 94 }
36 95
37 - public function getRecursiveMembership(): array
96 + /**
97 + * @return array
98 + */
99 + public function getRecursiveMembership()
38 100 {
39 101 return $this->recursiveMembership;
40 102 }
41 103 }