@@ -37,134 +37,134 @@ |
||
| 37 | 37 | * Mapping node for system tag to object id |
| 38 | 38 | */ |
| 39 | 39 | class SystemTagMappingNode implements \Sabre\DAV\INode { |
| 40 | - /** |
|
| 41 | - * @var ISystemTag |
|
| 42 | - */ |
|
| 43 | - protected $tag; |
|
| 44 | - |
|
| 45 | - /** |
|
| 46 | - * @var string |
|
| 47 | - */ |
|
| 48 | - private $objectId; |
|
| 49 | - |
|
| 50 | - /** |
|
| 51 | - * @var string |
|
| 52 | - */ |
|
| 53 | - private $objectType; |
|
| 54 | - |
|
| 55 | - /** |
|
| 56 | - * User |
|
| 57 | - * |
|
| 58 | - * @var IUser |
|
| 59 | - */ |
|
| 60 | - protected $user; |
|
| 61 | - |
|
| 62 | - /** |
|
| 63 | - * @var ISystemTagManager |
|
| 64 | - */ |
|
| 65 | - protected $tagManager; |
|
| 66 | - |
|
| 67 | - /** |
|
| 68 | - * @var ISystemTagObjectMapper |
|
| 69 | - */ |
|
| 70 | - private $tagMapper; |
|
| 71 | - |
|
| 72 | - /** |
|
| 73 | - * Sets up the node, expects a full path name |
|
| 74 | - * |
|
| 75 | - * @param ISystemTag $tag system tag |
|
| 76 | - * @param string $objectId |
|
| 77 | - * @param string $objectType |
|
| 78 | - * @param IUser $user user |
|
| 79 | - * @param ISystemTagManager $tagManager |
|
| 80 | - * @param ISystemTagObjectMapper $tagMapper |
|
| 81 | - */ |
|
| 82 | - public function __construct( |
|
| 83 | - ISystemTag $tag, |
|
| 84 | - $objectId, |
|
| 85 | - $objectType, |
|
| 86 | - IUser $user, |
|
| 87 | - ISystemTagManager $tagManager, |
|
| 88 | - ISystemTagObjectMapper $tagMapper |
|
| 89 | - ) { |
|
| 90 | - $this->tag = $tag; |
|
| 91 | - $this->objectId = $objectId; |
|
| 92 | - $this->objectType = $objectType; |
|
| 93 | - $this->user = $user; |
|
| 94 | - $this->tagManager = $tagManager; |
|
| 95 | - $this->tagMapper = $tagMapper; |
|
| 96 | - } |
|
| 97 | - |
|
| 98 | - /** |
|
| 99 | - * Returns the object id of the relationship |
|
| 100 | - * |
|
| 101 | - * @return string object id |
|
| 102 | - */ |
|
| 103 | - public function getObjectId() { |
|
| 104 | - return $this->objectId; |
|
| 105 | - } |
|
| 106 | - |
|
| 107 | - /** |
|
| 108 | - * Returns the object type of the relationship |
|
| 109 | - * |
|
| 110 | - * @return string object type |
|
| 111 | - */ |
|
| 112 | - public function getObjectType() { |
|
| 113 | - return $this->objectType; |
|
| 114 | - } |
|
| 115 | - |
|
| 116 | - /** |
|
| 117 | - * Returns the system tag represented by this node |
|
| 118 | - * |
|
| 119 | - * @return ISystemTag system tag |
|
| 120 | - */ |
|
| 121 | - public function getSystemTag() { |
|
| 122 | - return $this->tag; |
|
| 123 | - } |
|
| 124 | - |
|
| 125 | - /** |
|
| 126 | - * Returns the id of the tag |
|
| 127 | - * |
|
| 128 | - * @return string |
|
| 129 | - */ |
|
| 130 | - public function getName() { |
|
| 131 | - return $this->tag->getId(); |
|
| 132 | - } |
|
| 133 | - |
|
| 134 | - /** |
|
| 135 | - * Renames the node |
|
| 136 | - * |
|
| 137 | - * @param string $name The new name |
|
| 138 | - * |
|
| 139 | - * @throws MethodNotAllowed not allowed to rename node |
|
| 140 | - */ |
|
| 141 | - public function setName($name) { |
|
| 142 | - throw new MethodNotAllowed(); |
|
| 143 | - } |
|
| 144 | - |
|
| 145 | - /** |
|
| 146 | - * Returns null, not supported |
|
| 147 | - * |
|
| 148 | - */ |
|
| 149 | - public function getLastModified() { |
|
| 150 | - return null; |
|
| 151 | - } |
|
| 152 | - |
|
| 153 | - /** |
|
| 154 | - * Delete tag to object association |
|
| 155 | - */ |
|
| 156 | - public function delete() { |
|
| 157 | - try { |
|
| 158 | - if (!$this->tagManager->canUserSeeTag($this->tag, $this->user)) { |
|
| 159 | - throw new NotFound('Tag with id ' . $this->tag->getId() . ' not found'); |
|
| 160 | - } |
|
| 161 | - if (!$this->tagManager->canUserAssignTag($this->tag, $this->user)) { |
|
| 162 | - throw new Forbidden('No permission to unassign tag ' . $this->tag->getId()); |
|
| 163 | - } |
|
| 164 | - $this->tagMapper->unassignTags($this->objectId, $this->objectType, $this->tag->getId()); |
|
| 165 | - } catch (TagNotFoundException $e) { |
|
| 166 | - // can happen if concurrent deletion occurred |
|
| 167 | - throw new NotFound('Tag with id ' . $this->tag->getId() . ' not found', 0, $e); |
|
| 168 | - } |
|
| 169 | - } |
|
| 40 | + /** |
|
| 41 | + * @var ISystemTag |
|
| 42 | + */ |
|
| 43 | + protected $tag; |
|
| 44 | + |
|
| 45 | + /** |
|
| 46 | + * @var string |
|
| 47 | + */ |
|
| 48 | + private $objectId; |
|
| 49 | + |
|
| 50 | + /** |
|
| 51 | + * @var string |
|
| 52 | + */ |
|
| 53 | + private $objectType; |
|
| 54 | + |
|
| 55 | + /** |
|
| 56 | + * User |
|
| 57 | + * |
|
| 58 | + * @var IUser |
|
| 59 | + */ |
|
| 60 | + protected $user; |
|
| 61 | + |
|
| 62 | + /** |
|
| 63 | + * @var ISystemTagManager |
|
| 64 | + */ |
|
| 65 | + protected $tagManager; |
|
| 66 | + |
|
| 67 | + /** |
|
| 68 | + * @var ISystemTagObjectMapper |
|
| 69 | + */ |
|
| 70 | + private $tagMapper; |
|
| 71 | + |
|
| 72 | + /** |
|
| 73 | + * Sets up the node, expects a full path name |
|
| 74 | + * |
|
| 75 | + * @param ISystemTag $tag system tag |
|
| 76 | + * @param string $objectId |
|
| 77 | + * @param string $objectType |
|
| 78 | + * @param IUser $user user |
|
| 79 | + * @param ISystemTagManager $tagManager |
|
| 80 | + * @param ISystemTagObjectMapper $tagMapper |
|
| 81 | + */ |
|
| 82 | + public function __construct( |
|
| 83 | + ISystemTag $tag, |
|
| 84 | + $objectId, |
|
| 85 | + $objectType, |
|
| 86 | + IUser $user, |
|
| 87 | + ISystemTagManager $tagManager, |
|
| 88 | + ISystemTagObjectMapper $tagMapper |
|
| 89 | + ) { |
|
| 90 | + $this->tag = $tag; |
|
| 91 | + $this->objectId = $objectId; |
|
| 92 | + $this->objectType = $objectType; |
|
| 93 | + $this->user = $user; |
|
| 94 | + $this->tagManager = $tagManager; |
|
| 95 | + $this->tagMapper = $tagMapper; |
|
| 96 | + } |
|
| 97 | + |
|
| 98 | + /** |
|
| 99 | + * Returns the object id of the relationship |
|
| 100 | + * |
|
| 101 | + * @return string object id |
|
| 102 | + */ |
|
| 103 | + public function getObjectId() { |
|
| 104 | + return $this->objectId; |
|
| 105 | + } |
|
| 106 | + |
|
| 107 | + /** |
|
| 108 | + * Returns the object type of the relationship |
|
| 109 | + * |
|
| 110 | + * @return string object type |
|
| 111 | + */ |
|
| 112 | + public function getObjectType() { |
|
| 113 | + return $this->objectType; |
|
| 114 | + } |
|
| 115 | + |
|
| 116 | + /** |
|
| 117 | + * Returns the system tag represented by this node |
|
| 118 | + * |
|
| 119 | + * @return ISystemTag system tag |
|
| 120 | + */ |
|
| 121 | + public function getSystemTag() { |
|
| 122 | + return $this->tag; |
|
| 123 | + } |
|
| 124 | + |
|
| 125 | + /** |
|
| 126 | + * Returns the id of the tag |
|
| 127 | + * |
|
| 128 | + * @return string |
|
| 129 | + */ |
|
| 130 | + public function getName() { |
|
| 131 | + return $this->tag->getId(); |
|
| 132 | + } |
|
| 133 | + |
|
| 134 | + /** |
|
| 135 | + * Renames the node |
|
| 136 | + * |
|
| 137 | + * @param string $name The new name |
|
| 138 | + * |
|
| 139 | + * @throws MethodNotAllowed not allowed to rename node |
|
| 140 | + */ |
|
| 141 | + public function setName($name) { |
|
| 142 | + throw new MethodNotAllowed(); |
|
| 143 | + } |
|
| 144 | + |
|
| 145 | + /** |
|
| 146 | + * Returns null, not supported |
|
| 147 | + * |
|
| 148 | + */ |
|
| 149 | + public function getLastModified() { |
|
| 150 | + return null; |
|
| 151 | + } |
|
| 152 | + |
|
| 153 | + /** |
|
| 154 | + * Delete tag to object association |
|
| 155 | + */ |
|
| 156 | + public function delete() { |
|
| 157 | + try { |
|
| 158 | + if (!$this->tagManager->canUserSeeTag($this->tag, $this->user)) { |
|
| 159 | + throw new NotFound('Tag with id ' . $this->tag->getId() . ' not found'); |
|
| 160 | + } |
|
| 161 | + if (!$this->tagManager->canUserAssignTag($this->tag, $this->user)) { |
|
| 162 | + throw new Forbidden('No permission to unassign tag ' . $this->tag->getId()); |
|
| 163 | + } |
|
| 164 | + $this->tagMapper->unassignTags($this->objectId, $this->objectType, $this->tag->getId()); |
|
| 165 | + } catch (TagNotFoundException $e) { |
|
| 166 | + // can happen if concurrent deletion occurred |
|
| 167 | + throw new NotFound('Tag with id ' . $this->tag->getId() . ' not found', 0, $e); |
|
| 168 | + } |
|
| 169 | + } |
|
| 170 | 170 | } |
@@ -29,16 +29,16 @@ |
||
| 29 | 29 | |
| 30 | 30 | class Capabilities implements ICapability { |
| 31 | 31 | |
| 32 | - /** |
|
| 33 | - * Return this classes capabilities |
|
| 34 | - * |
|
| 35 | - * @return array |
|
| 36 | - */ |
|
| 37 | - public function getCapabilities() { |
|
| 38 | - return [ |
|
| 39 | - 'files' => [ |
|
| 40 | - 'versioning' => true |
|
| 41 | - ] |
|
| 42 | - ]; |
|
| 43 | - } |
|
| 32 | + /** |
|
| 33 | + * Return this classes capabilities |
|
| 34 | + * |
|
| 35 | + * @return array |
|
| 36 | + */ |
|
| 37 | + public function getCapabilities() { |
|
| 38 | + return [ |
|
| 39 | + 'files' => [ |
|
| 40 | + 'versioning' => true |
|
| 41 | + ] |
|
| 42 | + ]; |
|
| 43 | + } |
|
| 44 | 44 | } |
@@ -29,43 +29,43 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | interface IFilter { |
| 31 | 31 | |
| 32 | - /** |
|
| 33 | - * @return string Lowercase a-z and underscore only identifier |
|
| 34 | - * @since 11.0.0 |
|
| 35 | - */ |
|
| 36 | - public function getIdentifier(); |
|
| 32 | + /** |
|
| 33 | + * @return string Lowercase a-z and underscore only identifier |
|
| 34 | + * @since 11.0.0 |
|
| 35 | + */ |
|
| 36 | + public function getIdentifier(); |
|
| 37 | 37 | |
| 38 | - /** |
|
| 39 | - * @return string A translated string |
|
| 40 | - * @since 11.0.0 |
|
| 41 | - */ |
|
| 42 | - public function getName(); |
|
| 38 | + /** |
|
| 39 | + * @return string A translated string |
|
| 40 | + * @since 11.0.0 |
|
| 41 | + */ |
|
| 42 | + public function getName(); |
|
| 43 | 43 | |
| 44 | - /** |
|
| 45 | - * @return int whether the filter should be rather on the top or bottom of |
|
| 46 | - * the admin section. The filters are arranged in ascending order of the |
|
| 47 | - * priority values. It is required to return a value between 0 and 100. |
|
| 48 | - * @since 11.0.0 |
|
| 49 | - */ |
|
| 50 | - public function getPriority(); |
|
| 44 | + /** |
|
| 45 | + * @return int whether the filter should be rather on the top or bottom of |
|
| 46 | + * the admin section. The filters are arranged in ascending order of the |
|
| 47 | + * priority values. It is required to return a value between 0 and 100. |
|
| 48 | + * @since 11.0.0 |
|
| 49 | + */ |
|
| 50 | + public function getPriority(); |
|
| 51 | 51 | |
| 52 | - /** |
|
| 53 | - * @return string Full URL to an icon, empty string when none is given |
|
| 54 | - * @since 11.0.0 |
|
| 55 | - */ |
|
| 56 | - public function getIcon(); |
|
| 52 | + /** |
|
| 53 | + * @return string Full URL to an icon, empty string when none is given |
|
| 54 | + * @since 11.0.0 |
|
| 55 | + */ |
|
| 56 | + public function getIcon(); |
|
| 57 | 57 | |
| 58 | - /** |
|
| 59 | - * @param string[] $types |
|
| 60 | - * @return string[] An array of allowed apps from which activities should be displayed |
|
| 61 | - * @since 11.0.0 |
|
| 62 | - */ |
|
| 63 | - public function filterTypes(array $types); |
|
| 58 | + /** |
|
| 59 | + * @param string[] $types |
|
| 60 | + * @return string[] An array of allowed apps from which activities should be displayed |
|
| 61 | + * @since 11.0.0 |
|
| 62 | + */ |
|
| 63 | + public function filterTypes(array $types); |
|
| 64 | 64 | |
| 65 | - /** |
|
| 66 | - * @return string[] An array of allowed apps from which activities should be displayed |
|
| 67 | - * @since 11.0.0 |
|
| 68 | - */ |
|
| 69 | - public function allowedApps(); |
|
| 65 | + /** |
|
| 66 | + * @return string[] An array of allowed apps from which activities should be displayed |
|
| 67 | + * @since 11.0.0 |
|
| 68 | + */ |
|
| 69 | + public function allowedApps(); |
|
| 70 | 70 | } |
| 71 | 71 | |
@@ -30,35 +30,35 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | interface IEventMerger { |
| 32 | 32 | |
| 33 | - /** |
|
| 34 | - * Combines two events when possible to have grouping: |
|
| 35 | - * |
|
| 36 | - * Example1: Two events with subject '{user} created {file}' and |
|
| 37 | - * $mergeParameter file with different file and same user will be merged |
|
| 38 | - * to '{user} created {file1} and {file2}' and the childEvent on the return |
|
| 39 | - * will be set, if the events have been merged. |
|
| 40 | - * |
|
| 41 | - * Example2: Two events with subject '{user} created {file}' and |
|
| 42 | - * $mergeParameter file with same file and same user will be merged to |
|
| 43 | - * '{user} created {file1}' and the childEvent on the return will be set, if |
|
| 44 | - * the events have been merged. |
|
| 45 | - * |
|
| 46 | - * The following requirements have to be met, in order to be merged: |
|
| 47 | - * - Both events need to have the same `getApp()` |
|
| 48 | - * - Both events must not have a message `getMessage()` |
|
| 49 | - * - Both events need to have the same subject `getSubject()` |
|
| 50 | - * - Both events need to have the same object type `getObjectType()` |
|
| 51 | - * - The time difference between both events must not be bigger then 3 hours |
|
| 52 | - * - Only up to 5 events can be merged. |
|
| 53 | - * - All parameters apart from such starting with $mergeParameter must be |
|
| 54 | - * the same for both events. |
|
| 55 | - * |
|
| 56 | - * @param string $mergeParameter |
|
| 57 | - * @param IEvent $event |
|
| 58 | - * @param IEvent|null $previousEvent |
|
| 59 | - * @return IEvent |
|
| 60 | - * @since 11.0 |
|
| 61 | - */ |
|
| 62 | - public function mergeEvents($mergeParameter, IEvent $event, IEvent $previousEvent = null); |
|
| 33 | + /** |
|
| 34 | + * Combines two events when possible to have grouping: |
|
| 35 | + * |
|
| 36 | + * Example1: Two events with subject '{user} created {file}' and |
|
| 37 | + * $mergeParameter file with different file and same user will be merged |
|
| 38 | + * to '{user} created {file1} and {file2}' and the childEvent on the return |
|
| 39 | + * will be set, if the events have been merged. |
|
| 40 | + * |
|
| 41 | + * Example2: Two events with subject '{user} created {file}' and |
|
| 42 | + * $mergeParameter file with same file and same user will be merged to |
|
| 43 | + * '{user} created {file1}' and the childEvent on the return will be set, if |
|
| 44 | + * the events have been merged. |
|
| 45 | + * |
|
| 46 | + * The following requirements have to be met, in order to be merged: |
|
| 47 | + * - Both events need to have the same `getApp()` |
|
| 48 | + * - Both events must not have a message `getMessage()` |
|
| 49 | + * - Both events need to have the same subject `getSubject()` |
|
| 50 | + * - Both events need to have the same object type `getObjectType()` |
|
| 51 | + * - The time difference between both events must not be bigger then 3 hours |
|
| 52 | + * - Only up to 5 events can be merged. |
|
| 53 | + * - All parameters apart from such starting with $mergeParameter must be |
|
| 54 | + * the same for both events. |
|
| 55 | + * |
|
| 56 | + * @param string $mergeParameter |
|
| 57 | + * @param IEvent $event |
|
| 58 | + * @param IEvent|null $previousEvent |
|
| 59 | + * @return IEvent |
|
| 60 | + * @since 11.0 |
|
| 61 | + */ |
|
| 62 | + public function mergeEvents($mergeParameter, IEvent $event, IEvent $previousEvent = null); |
|
| 63 | 63 | |
| 64 | 64 | } |
@@ -29,48 +29,48 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | interface ISetting { |
| 31 | 31 | |
| 32 | - /** |
|
| 33 | - * @return string Lowercase a-z and underscore only identifier |
|
| 34 | - * @since 11.0.0 |
|
| 35 | - */ |
|
| 36 | - public function getIdentifier(); |
|
| 32 | + /** |
|
| 33 | + * @return string Lowercase a-z and underscore only identifier |
|
| 34 | + * @since 11.0.0 |
|
| 35 | + */ |
|
| 36 | + public function getIdentifier(); |
|
| 37 | 37 | |
| 38 | - /** |
|
| 39 | - * @return string A translated string |
|
| 40 | - * @since 11.0.0 |
|
| 41 | - */ |
|
| 42 | - public function getName(); |
|
| 38 | + /** |
|
| 39 | + * @return string A translated string |
|
| 40 | + * @since 11.0.0 |
|
| 41 | + */ |
|
| 42 | + public function getName(); |
|
| 43 | 43 | |
| 44 | - /** |
|
| 45 | - * @return int whether the filter should be rather on the top or bottom of |
|
| 46 | - * the admin section. The filters are arranged in ascending order of the |
|
| 47 | - * priority values. It is required to return a value between 0 and 100. |
|
| 48 | - * @since 11.0.0 |
|
| 49 | - */ |
|
| 50 | - public function getPriority(); |
|
| 44 | + /** |
|
| 45 | + * @return int whether the filter should be rather on the top or bottom of |
|
| 46 | + * the admin section. The filters are arranged in ascending order of the |
|
| 47 | + * priority values. It is required to return a value between 0 and 100. |
|
| 48 | + * @since 11.0.0 |
|
| 49 | + */ |
|
| 50 | + public function getPriority(); |
|
| 51 | 51 | |
| 52 | - /** |
|
| 53 | - * @return bool True when the option can be changed for the stream |
|
| 54 | - * @since 11.0.0 |
|
| 55 | - */ |
|
| 56 | - public function canChangeStream(); |
|
| 52 | + /** |
|
| 53 | + * @return bool True when the option can be changed for the stream |
|
| 54 | + * @since 11.0.0 |
|
| 55 | + */ |
|
| 56 | + public function canChangeStream(); |
|
| 57 | 57 | |
| 58 | - /** |
|
| 59 | - * @return bool True when the option can be changed for the stream |
|
| 60 | - * @since 11.0.0 |
|
| 61 | - */ |
|
| 62 | - public function isDefaultEnabledStream(); |
|
| 58 | + /** |
|
| 59 | + * @return bool True when the option can be changed for the stream |
|
| 60 | + * @since 11.0.0 |
|
| 61 | + */ |
|
| 62 | + public function isDefaultEnabledStream(); |
|
| 63 | 63 | |
| 64 | - /** |
|
| 65 | - * @return bool True when the option can be changed for the mail |
|
| 66 | - * @since 11.0.0 |
|
| 67 | - */ |
|
| 68 | - public function canChangeMail(); |
|
| 64 | + /** |
|
| 65 | + * @return bool True when the option can be changed for the mail |
|
| 66 | + * @since 11.0.0 |
|
| 67 | + */ |
|
| 68 | + public function canChangeMail(); |
|
| 69 | 69 | |
| 70 | - /** |
|
| 71 | - * @return bool True when the option can be changed for the stream |
|
| 72 | - * @since 11.0.0 |
|
| 73 | - */ |
|
| 74 | - public function isDefaultEnabledMail(); |
|
| 70 | + /** |
|
| 71 | + * @return bool True when the option can be changed for the stream |
|
| 72 | + * @since 11.0.0 |
|
| 73 | + */ |
|
| 74 | + public function isDefaultEnabledMail(); |
|
| 75 | 75 | } |
| 76 | 76 | |
@@ -28,15 +28,15 @@ |
||
| 28 | 28 | * @since 11.0.0 |
| 29 | 29 | */ |
| 30 | 30 | interface IProvider { |
| 31 | - /** |
|
| 32 | - * @param string $language The language which should be used for translating, e.g. "en" |
|
| 33 | - * @param IEvent $event The current event which should be parsed |
|
| 34 | - * @param IEvent|null $previousEvent A potential previous event which you can combine with the current one. |
|
| 35 | - * To do so, simply use setChildEvent($previousEvent) after setting the |
|
| 36 | - * combined subject on the current event. |
|
| 37 | - * @return IEvent |
|
| 38 | - * @throws \InvalidArgumentException Should be thrown if your provider does not know this event |
|
| 39 | - * @since 11.0.0 |
|
| 40 | - */ |
|
| 41 | - public function parse($language, IEvent $event, IEvent $previousEvent = null); |
|
| 31 | + /** |
|
| 32 | + * @param string $language The language which should be used for translating, e.g. "en" |
|
| 33 | + * @param IEvent $event The current event which should be parsed |
|
| 34 | + * @param IEvent|null $previousEvent A potential previous event which you can combine with the current one. |
|
| 35 | + * To do so, simply use setChildEvent($previousEvent) after setting the |
|
| 36 | + * combined subject on the current event. |
|
| 37 | + * @return IEvent |
|
| 38 | + * @throws \InvalidArgumentException Should be thrown if your provider does not know this event |
|
| 39 | + * @since 11.0.0 |
|
| 40 | + */ |
|
| 41 | + public function parse($language, IEvent $event, IEvent $previousEvent = null); |
|
| 42 | 42 | } |
@@ -38,12 +38,12 @@ |
||
| 38 | 38 | * @since 6.0.0 |
| 39 | 39 | */ |
| 40 | 40 | interface IConsumer { |
| 41 | - /** |
|
| 42 | - * @param IEvent $event |
|
| 43 | - * @return null |
|
| 44 | - * @since 6.0.0 |
|
| 45 | - * @since 8.2.0 Replaced the parameters with an IEvent object |
|
| 46 | - */ |
|
| 47 | - public function receive(IEvent $event); |
|
| 41 | + /** |
|
| 42 | + * @param IEvent $event |
|
| 43 | + * @return null |
|
| 44 | + * @since 6.0.0 |
|
| 45 | + * @since 8.2.0 Replaced the parameters with an IEvent object |
|
| 46 | + */ |
|
| 47 | + public function receive(IEvent $event); |
|
| 48 | 48 | } |
| 49 | 49 | |
@@ -29,12 +29,12 @@ |
||
| 29 | 29 | * @since 8.2.2 |
| 30 | 30 | */ |
| 31 | 31 | interface IMemcacheTTL extends IMemcache { |
| 32 | - /** |
|
| 33 | - * Set the ttl for an existing value |
|
| 34 | - * |
|
| 35 | - * @param string $key |
|
| 36 | - * @param int $ttl time to live in seconds |
|
| 37 | - * @since 8.2.2 |
|
| 38 | - */ |
|
| 39 | - public function setTTL($key, $ttl); |
|
| 32 | + /** |
|
| 33 | + * Set the ttl for an existing value |
|
| 34 | + * |
|
| 35 | + * @param string $key |
|
| 36 | + * @param int $ttl time to live in seconds |
|
| 37 | + * @since 8.2.2 |
|
| 38 | + */ |
|
| 39 | + public function setTTL($key, $ttl); |
|
| 40 | 40 | } |
@@ -30,10 +30,10 @@ |
||
| 30 | 30 | * @since 8.0.0 |
| 31 | 31 | */ |
| 32 | 32 | interface IDateTimeZone { |
| 33 | - /** |
|
| 34 | - * @param bool|int $timestamp |
|
| 35 | - * @return \DateTimeZone |
|
| 36 | - * @since 8.0.0 - parameter $timestamp was added in 8.1.0 |
|
| 37 | - */ |
|
| 38 | - public function getTimeZone($timestamp = false); |
|
| 33 | + /** |
|
| 34 | + * @param bool|int $timestamp |
|
| 35 | + * @return \DateTimeZone |
|
| 36 | + * @since 8.0.0 - parameter $timestamp was added in 8.1.0 |
|
| 37 | + */ |
|
| 38 | + public function getTimeZone($timestamp = false); |
|
| 39 | 39 | } |