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
user-access-manager / src / Controller / Backend / ObjectInformation.php

ObjectInformation.php in User Access Manager 2.1.11, at src/Controller/Backend/ObjectInformation.php

138 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * ObjectInformation.php
4 *
5 * The ObjectInformation class file.
6 *
7 * PHP versions 5
8 *
9 * @author Alexander Schneider <alexanderschneider85@gmail.com>
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 */
15 namespace UserAccessManager\Controller\Backend;
16
17 use UserAccessManager\UserGroup\AbstractUserGroup;
18
19 /**
20 * Class ObjectInformation
21 *
22 * @package UserAccessManager\Controller\Backend
23 */
24 class ObjectInformation
25 {
26 /**
27 * @var null|string
28 */
29 protected $objectType = null;
30
31 /**
32 * @var null|string
33 */
34 protected $objectId = null;
35
36 /**
37 * @var int
38 */
39 protected $userGroupDiff = 0;
40
41 /**
42 * @var AbstractUserGroup[]
43 */
44 protected $objectUserGroups = [];
45
46 /**
47 * Sets the object type.
48 *
49 * @param string $objectType
50 *
51 * @return $this
52 */
53 public function setObjectType($objectType)
54 {
55 $this->objectType = $objectType;
56 return $this;
57 }
58
59 /**
60 * Returns the current object type.
61 *
62 * @return null|string
63 */
64 public function getObjectType()
65 {
66 return $this->objectType;
67 }
68
69 /**
70 * Sets the object id.
71 *
72 * @param $objectId
73 *
74 * @return $this
75 */
76 public function setObjectId($objectId)
77 {
78 $this->objectId = $objectId;
79 return $this;
80 }
81
82 /**
83 * Returns the current object id.
84 *
85 * @return null|string
86 */
87 public function getObjectId()
88 {
89 return $this->objectId;
90 }
91
92 /**
93 * Sets the user group diff count.
94 *
95 * @param int $userGroupDiff
96 *
97 * @return $this
98 */
99 public function setUserGroupDiff($userGroupDiff)
100 {
101 $this->userGroupDiff = $userGroupDiff;
102 return $this;
103 }
104
105 /**
106 * Returns the user group count diff.
107 *
108 * @return int
109 */
110 public function getUserGroupDiff()
111 {
112 return $this->userGroupDiff;
113 }
114
115 /**
116 * Sets the user group diff count.
117 *
118 * @param $objectUserGroups
119 *
120 * @return $this
121 */
122 public function setObjectUserGroups($objectUserGroups)
123 {
124 $this->objectUserGroups = $objectUserGroups;
125 return $this;
126 }
127
128 /**
129 * Returns the current object user groups.
130 *
131 * @return AbstractUserGroup[]
132 */
133 public function getObjectUserGroups()
134 {
135 return $this->objectUserGroups;
136 }
137 }
138