| @@ 20-186 (lines=167) @@ | ||
| 17 | /** |
|
| 18 | * Class ResourceEntity. |
|
| 19 | */ |
|
| 20 | class ResourceEntity implements DataEntityInterface |
|
| 21 | { |
|
| 22 | /** @var int */ |
|
| 23 | private $resourceId; |
|
| 24 | /** @var string */ |
|
| 25 | private $name; |
|
| 26 | /** @var string */ |
|
| 27 | private $title; |
|
| 28 | /** @var string */ |
|
| 29 | private $description; |
|
| 30 | /** @var bool */ |
|
| 31 | private $isReadOnly; |
|
| 32 | /** @var DateTime */ |
|
| 33 | private $dateCreated; |
|
| 34 | /** @var DateTime */ |
|
| 35 | private $dateModified; |
|
| 36 | ||
| 37 | /** |
|
| 38 | * Gets the value of the entity identifier. |
|
| 39 | * |
|
| 40 | * @return int |
|
| 41 | */ |
|
| 42 | public function getKeyData() |
|
| 43 | { |
|
| 44 | return $this->resourceId; |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * @param int $resourceId |
|
| 49 | * |
|
| 50 | * @return ResourceEntity |
|
| 51 | */ |
|
| 52 | public function setResourceId($resourceId) |
|
| 53 | { |
|
| 54 | $this->resourceId = $resourceId; |
|
| 55 | ||
| 56 | return $this; |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * @return int |
|
| 61 | */ |
|
| 62 | public function getResourceId() |
|
| 63 | { |
|
| 64 | return $this->resourceId; |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * @param string $name |
|
| 69 | * |
|
| 70 | * @return ResourceEntity |
|
| 71 | */ |
|
| 72 | public function setName($name) |
|
| 73 | { |
|
| 74 | $this->name = $name; |
|
| 75 | ||
| 76 | return $this; |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * @return string |
|
| 81 | */ |
|
| 82 | public function getName() |
|
| 83 | { |
|
| 84 | return $this->name; |
|
| 85 | } |
|
| 86 | ||
| 87 | /** |
|
| 88 | * @param string $title |
|
| 89 | * |
|
| 90 | * @return ResourceEntity |
|
| 91 | */ |
|
| 92 | public function setTitle($title) |
|
| 93 | { |
|
| 94 | $this->title = $title; |
|
| 95 | ||
| 96 | return $this; |
|
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| 100 | * @return string |
|
| 101 | */ |
|
| 102 | public function getTitle() |
|
| 103 | { |
|
| 104 | return $this->title; |
|
| 105 | } |
|
| 106 | ||
| 107 | /** |
|
| 108 | * @param string $description |
|
| 109 | * |
|
| 110 | * @return ResourceEntity |
|
| 111 | */ |
|
| 112 | public function setDescription($description) |
|
| 113 | { |
|
| 114 | $this->description = $description; |
|
| 115 | ||
| 116 | return $this; |
|
| 117 | } |
|
| 118 | ||
| 119 | /** |
|
| 120 | * @return string |
|
| 121 | */ |
|
| 122 | public function getDescription() |
|
| 123 | { |
|
| 124 | return $this->description; |
|
| 125 | } |
|
| 126 | ||
| 127 | /** |
|
| 128 | * @param bool $state |
|
| 129 | * |
|
| 130 | * @return ResourceEntity |
|
| 131 | */ |
|
| 132 | public function setReadOnly($state) |
|
| 133 | { |
|
| 134 | $this->isReadOnly = (bool) $state; |
|
| 135 | ||
| 136 | return $this; |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * @return bool |
|
| 141 | */ |
|
| 142 | public function getReadOnly() |
|
| 143 | { |
|
| 144 | return $this->isReadOnly; |
|
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * @param DateTime $dateCreated |
|
| 149 | * |
|
| 150 | * @return ResourceEntity |
|
| 151 | */ |
|
| 152 | public function setDateCreated(DateTime $dateCreated) |
|
| 153 | { |
|
| 154 | $this->dateCreated = $dateCreated; |
|
| 155 | ||
| 156 | return $this; |
|
| 157 | } |
|
| 158 | ||
| 159 | /** |
|
| 160 | * @return DateTime |
|
| 161 | */ |
|
| 162 | public function getDateCreated() |
|
| 163 | { |
|
| 164 | return $this->dateCreated; |
|
| 165 | } |
|
| 166 | ||
| 167 | /** |
|
| 168 | * @param DateTime $dateModified |
|
| 169 | * |
|
| 170 | * @return ResourceEntity |
|
| 171 | */ |
|
| 172 | public function setDateModified(DateTime $dateModified) |
|
| 173 | { |
|
| 174 | $this->dateModified = $dateModified; |
|
| 175 | ||
| 176 | return $this; |
|
| 177 | } |
|
| 178 | ||
| 179 | /** |
|
| 180 | * @return DateTime |
|
| 181 | */ |
|
| 182 | public function getDateModified() |
|
| 183 | { |
|
| 184 | return $this->dateModified; |
|
| 185 | } |
|
| 186 | } |
|
| 187 | ||
| @@ 19-185 (lines=167) @@ | ||
| 16 | /** |
|
| 17 | * Class ApplicationEntity. |
|
| 18 | */ |
|
| 19 | class ApplicationEntity implements DataEntityInterface |
|
| 20 | { |
|
| 21 | /** @var int */ |
|
| 22 | private $applicationId; |
|
| 23 | /** @var string */ |
|
| 24 | private $name; |
|
| 25 | /** @var string */ |
|
| 26 | private $title; |
|
| 27 | /** @var string */ |
|
| 28 | private $description; |
|
| 29 | /** @var bool */ |
|
| 30 | private $isReadOnly; |
|
| 31 | /** @var DateTime */ |
|
| 32 | private $dateCreated; |
|
| 33 | /** @var DateTime */ |
|
| 34 | private $dateModified; |
|
| 35 | ||
| 36 | /** |
|
| 37 | * Gets the value of the entity identifier. |
|
| 38 | * |
|
| 39 | * @return int |
|
| 40 | */ |
|
| 41 | public function getKeyData() |
|
| 42 | { |
|
| 43 | return $this->applicationId; |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * @param int $applicationId |
|
| 48 | * |
|
| 49 | * @return ApplicationEntity |
|
| 50 | */ |
|
| 51 | public function setApplicationId($applicationId) |
|
| 52 | { |
|
| 53 | $this->applicationId = $applicationId; |
|
| 54 | ||
| 55 | return $this; |
|
| 56 | } |
|
| 57 | ||
| 58 | /** |
|
| 59 | * @return int |
|
| 60 | */ |
|
| 61 | public function getApplicationId() |
|
| 62 | { |
|
| 63 | return $this->applicationId; |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * @param string $name |
|
| 68 | * |
|
| 69 | * @return ApplicationEntity |
|
| 70 | */ |
|
| 71 | public function setName($name) |
|
| 72 | { |
|
| 73 | $this->name = $name; |
|
| 74 | ||
| 75 | return $this; |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * @return string |
|
| 80 | */ |
|
| 81 | public function getName() |
|
| 82 | { |
|
| 83 | return $this->name; |
|
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * @param string $title |
|
| 88 | * |
|
| 89 | * @return ApplicationEntity |
|
| 90 | */ |
|
| 91 | public function setTitle($title) |
|
| 92 | { |
|
| 93 | $this->title = $title; |
|
| 94 | ||
| 95 | return $this; |
|
| 96 | } |
|
| 97 | ||
| 98 | /** |
|
| 99 | * @return string |
|
| 100 | */ |
|
| 101 | public function getTitle() |
|
| 102 | { |
|
| 103 | return $this->title; |
|
| 104 | } |
|
| 105 | ||
| 106 | /** |
|
| 107 | * @param string $description |
|
| 108 | * |
|
| 109 | * @return ApplicationEntity |
|
| 110 | */ |
|
| 111 | public function setDescription($description) |
|
| 112 | { |
|
| 113 | $this->description = $description; |
|
| 114 | ||
| 115 | return $this; |
|
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| 119 | * @return string |
|
| 120 | */ |
|
| 121 | public function getDescription() |
|
| 122 | { |
|
| 123 | return $this->description; |
|
| 124 | } |
|
| 125 | ||
| 126 | /** |
|
| 127 | * @param bool $state |
|
| 128 | * |
|
| 129 | * @return ApplicationEntity |
|
| 130 | */ |
|
| 131 | public function setReadOnly($state) |
|
| 132 | { |
|
| 133 | $this->isReadOnly = (bool) $state; |
|
| 134 | ||
| 135 | return $this; |
|
| 136 | } |
|
| 137 | ||
| 138 | /** |
|
| 139 | * @return bool |
|
| 140 | */ |
|
| 141 | public function getReadOnly() |
|
| 142 | { |
|
| 143 | return $this->isReadOnly; |
|
| 144 | } |
|
| 145 | ||
| 146 | /** |
|
| 147 | * @param DateTime $dateCreated |
|
| 148 | * |
|
| 149 | * @return ApplicationEntity |
|
| 150 | */ |
|
| 151 | public function setDateCreated(DateTime $dateCreated) |
|
| 152 | { |
|
| 153 | $this->dateCreated = $dateCreated; |
|
| 154 | ||
| 155 | return $this; |
|
| 156 | } |
|
| 157 | ||
| 158 | /** |
|
| 159 | * @return DateTime |
|
| 160 | */ |
|
| 161 | public function getDateCreated() |
|
| 162 | { |
|
| 163 | return $this->dateCreated; |
|
| 164 | } |
|
| 165 | ||
| 166 | /** |
|
| 167 | * @param DateTime $dateModified |
|
| 168 | * |
|
| 169 | * @return ApplicationEntity |
|
| 170 | */ |
|
| 171 | public function setDateModified(DateTime $dateModified) |
|
| 172 | { |
|
| 173 | $this->dateModified = $dateModified; |
|
| 174 | ||
| 175 | return $this; |
|
| 176 | } |
|
| 177 | ||
| 178 | /** |
|
| 179 | * @return DateTime |
|
| 180 | */ |
|
| 181 | public function getDateModified() |
|
| 182 | { |
|
| 183 | return $this->dateModified; |
|
| 184 | } |
|
| 185 | } |
|
| 186 | ||