@@ -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 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | * remove all user backends |
| 69 | 69 | * @since 8.0.0 |
| 70 | 70 | */ |
| 71 | - public function clearBackends() ; |
|
| 71 | + public function clearBackends(); |
|
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | 74 | * get a user by user id |
@@ -46,170 +46,170 @@ |
||
| 46 | 46 | * @since 8.0.0 |
| 47 | 47 | */ |
| 48 | 48 | interface IUserManager { |
| 49 | - /** |
|
| 50 | - * register a user backend |
|
| 51 | - * |
|
| 52 | - * @param \OCP\UserInterface $backend |
|
| 53 | - * @since 8.0.0 |
|
| 54 | - */ |
|
| 55 | - public function registerBackend($backend); |
|
| 56 | - |
|
| 57 | - /** |
|
| 58 | - * Get the active backends |
|
| 59 | - * @return \OCP\UserInterface[] |
|
| 60 | - * @since 8.0.0 |
|
| 61 | - */ |
|
| 62 | - public function getBackends(); |
|
| 63 | - |
|
| 64 | - /** |
|
| 65 | - * remove a user backend |
|
| 66 | - * |
|
| 67 | - * @param \OCP\UserInterface $backend |
|
| 68 | - * @since 8.0.0 |
|
| 69 | - */ |
|
| 70 | - public function removeBackend($backend); |
|
| 71 | - |
|
| 72 | - /** |
|
| 73 | - * remove all user backends |
|
| 74 | - * @since 8.0.0 |
|
| 75 | - */ |
|
| 76 | - public function clearBackends() ; |
|
| 77 | - |
|
| 78 | - /** |
|
| 79 | - * get a user by user id |
|
| 80 | - * |
|
| 81 | - * @param string $uid |
|
| 82 | - * @return \OCP\IUser|null Either the user or null if the specified user does not exist |
|
| 83 | - * @since 8.0.0 |
|
| 84 | - */ |
|
| 85 | - public function get($uid); |
|
| 86 | - |
|
| 87 | - /** |
|
| 88 | - * Get the display name of a user |
|
| 89 | - * |
|
| 90 | - * @param string $uid |
|
| 91 | - * @return string|null |
|
| 92 | - * @since 25.0.0 |
|
| 93 | - */ |
|
| 94 | - public function getDisplayName(string $uid): ?string; |
|
| 95 | - |
|
| 96 | - /** |
|
| 97 | - * check if a user exists |
|
| 98 | - * |
|
| 99 | - * @param string $uid |
|
| 100 | - * @return bool |
|
| 101 | - * @since 8.0.0 |
|
| 102 | - */ |
|
| 103 | - public function userExists($uid); |
|
| 104 | - |
|
| 105 | - /** |
|
| 106 | - * Check if the password is valid for the user |
|
| 107 | - * |
|
| 108 | - * @param string $loginName |
|
| 109 | - * @param string $password |
|
| 110 | - * @return IUser|false the User object on success, false otherwise |
|
| 111 | - * @since 8.0.0 |
|
| 112 | - */ |
|
| 113 | - public function checkPassword($loginName, $password); |
|
| 114 | - |
|
| 115 | - /** |
|
| 116 | - * search by user id |
|
| 117 | - * |
|
| 118 | - * @param string $pattern |
|
| 119 | - * @param int $limit |
|
| 120 | - * @param int $offset |
|
| 121 | - * @return \OCP\IUser[] |
|
| 122 | - * @since 8.0.0 |
|
| 123 | - */ |
|
| 124 | - public function search($pattern, $limit = null, $offset = null); |
|
| 125 | - |
|
| 126 | - /** |
|
| 127 | - * search by displayName |
|
| 128 | - * |
|
| 129 | - * @param string $pattern |
|
| 130 | - * @param int $limit |
|
| 131 | - * @param int $offset |
|
| 132 | - * @return \OCP\IUser[] |
|
| 133 | - * @since 8.0.0 |
|
| 134 | - */ |
|
| 135 | - public function searchDisplayName($pattern, $limit = null, $offset = null); |
|
| 136 | - |
|
| 137 | - /** |
|
| 138 | - * Search known users (from phonebook sync) by displayName |
|
| 139 | - * |
|
| 140 | - * @param string $searcher |
|
| 141 | - * @param string $pattern |
|
| 142 | - * @param int|null $limit |
|
| 143 | - * @param int|null $offset |
|
| 144 | - * @return IUser[] |
|
| 145 | - * @since 21.0.1 |
|
| 146 | - */ |
|
| 147 | - public function searchKnownUsersByDisplayName(string $searcher, string $pattern, ?int $limit = null, ?int $offset = null): array; |
|
| 148 | - |
|
| 149 | - /** |
|
| 150 | - * @param string $uid |
|
| 151 | - * @param string $password |
|
| 152 | - * @throws \InvalidArgumentException |
|
| 153 | - * @return false|\OCP\IUser the created user or false |
|
| 154 | - * @since 8.0.0 |
|
| 155 | - */ |
|
| 156 | - public function createUser($uid, $password); |
|
| 157 | - |
|
| 158 | - /** |
|
| 159 | - * @param string $uid |
|
| 160 | - * @param string $password |
|
| 161 | - * @param UserInterface $backend |
|
| 162 | - * @return IUser|null |
|
| 163 | - * @throws \InvalidArgumentException |
|
| 164 | - * @since 12.0.0 |
|
| 165 | - */ |
|
| 166 | - public function createUserFromBackend($uid, $password, UserInterface $backend); |
|
| 167 | - |
|
| 168 | - /** |
|
| 169 | - * Get how many users per backend exist (if supported by backend) |
|
| 170 | - * |
|
| 171 | - * @return array<string, int> an array of backend class name as key and count number as value |
|
| 172 | - * @since 8.0.0 |
|
| 173 | - */ |
|
| 174 | - public function countUsers(); |
|
| 175 | - |
|
| 176 | - /** |
|
| 177 | - * @param \Closure $callback |
|
| 178 | - * @psalm-param \Closure(\OCP\IUser):void $callback |
|
| 179 | - * @param string $search |
|
| 180 | - * @since 9.0.0 |
|
| 181 | - */ |
|
| 182 | - public function callForAllUsers(\Closure $callback, $search = ''); |
|
| 183 | - |
|
| 184 | - /** |
|
| 185 | - * returns how many users have logged in once |
|
| 186 | - * |
|
| 187 | - * @return int |
|
| 188 | - * @since 11.0.0 |
|
| 189 | - */ |
|
| 190 | - public function countDisabledUsers(); |
|
| 191 | - |
|
| 192 | - /** |
|
| 193 | - * returns how many users have logged in once |
|
| 194 | - * |
|
| 195 | - * @return int |
|
| 196 | - * @since 11.0.0 |
|
| 197 | - */ |
|
| 198 | - public function countSeenUsers(); |
|
| 199 | - |
|
| 200 | - /** |
|
| 201 | - * @param \Closure $callback |
|
| 202 | - * @psalm-param \Closure(\OCP\IUser):?bool $callback |
|
| 203 | - * @since 11.0.0 |
|
| 204 | - */ |
|
| 205 | - public function callForSeenUsers(\Closure $callback); |
|
| 206 | - |
|
| 207 | - /** |
|
| 208 | - * returns all users having the provided email set as system email address |
|
| 209 | - * |
|
| 210 | - * @param string $email |
|
| 211 | - * @return IUser[] |
|
| 212 | - * @since 9.1.0 |
|
| 213 | - */ |
|
| 214 | - public function getByEmail($email); |
|
| 49 | + /** |
|
| 50 | + * register a user backend |
|
| 51 | + * |
|
| 52 | + * @param \OCP\UserInterface $backend |
|
| 53 | + * @since 8.0.0 |
|
| 54 | + */ |
|
| 55 | + public function registerBackend($backend); |
|
| 56 | + |
|
| 57 | + /** |
|
| 58 | + * Get the active backends |
|
| 59 | + * @return \OCP\UserInterface[] |
|
| 60 | + * @since 8.0.0 |
|
| 61 | + */ |
|
| 62 | + public function getBackends(); |
|
| 63 | + |
|
| 64 | + /** |
|
| 65 | + * remove a user backend |
|
| 66 | + * |
|
| 67 | + * @param \OCP\UserInterface $backend |
|
| 68 | + * @since 8.0.0 |
|
| 69 | + */ |
|
| 70 | + public function removeBackend($backend); |
|
| 71 | + |
|
| 72 | + /** |
|
| 73 | + * remove all user backends |
|
| 74 | + * @since 8.0.0 |
|
| 75 | + */ |
|
| 76 | + public function clearBackends() ; |
|
| 77 | + |
|
| 78 | + /** |
|
| 79 | + * get a user by user id |
|
| 80 | + * |
|
| 81 | + * @param string $uid |
|
| 82 | + * @return \OCP\IUser|null Either the user or null if the specified user does not exist |
|
| 83 | + * @since 8.0.0 |
|
| 84 | + */ |
|
| 85 | + public function get($uid); |
|
| 86 | + |
|
| 87 | + /** |
|
| 88 | + * Get the display name of a user |
|
| 89 | + * |
|
| 90 | + * @param string $uid |
|
| 91 | + * @return string|null |
|
| 92 | + * @since 25.0.0 |
|
| 93 | + */ |
|
| 94 | + public function getDisplayName(string $uid): ?string; |
|
| 95 | + |
|
| 96 | + /** |
|
| 97 | + * check if a user exists |
|
| 98 | + * |
|
| 99 | + * @param string $uid |
|
| 100 | + * @return bool |
|
| 101 | + * @since 8.0.0 |
|
| 102 | + */ |
|
| 103 | + public function userExists($uid); |
|
| 104 | + |
|
| 105 | + /** |
|
| 106 | + * Check if the password is valid for the user |
|
| 107 | + * |
|
| 108 | + * @param string $loginName |
|
| 109 | + * @param string $password |
|
| 110 | + * @return IUser|false the User object on success, false otherwise |
|
| 111 | + * @since 8.0.0 |
|
| 112 | + */ |
|
| 113 | + public function checkPassword($loginName, $password); |
|
| 114 | + |
|
| 115 | + /** |
|
| 116 | + * search by user id |
|
| 117 | + * |
|
| 118 | + * @param string $pattern |
|
| 119 | + * @param int $limit |
|
| 120 | + * @param int $offset |
|
| 121 | + * @return \OCP\IUser[] |
|
| 122 | + * @since 8.0.0 |
|
| 123 | + */ |
|
| 124 | + public function search($pattern, $limit = null, $offset = null); |
|
| 125 | + |
|
| 126 | + /** |
|
| 127 | + * search by displayName |
|
| 128 | + * |
|
| 129 | + * @param string $pattern |
|
| 130 | + * @param int $limit |
|
| 131 | + * @param int $offset |
|
| 132 | + * @return \OCP\IUser[] |
|
| 133 | + * @since 8.0.0 |
|
| 134 | + */ |
|
| 135 | + public function searchDisplayName($pattern, $limit = null, $offset = null); |
|
| 136 | + |
|
| 137 | + /** |
|
| 138 | + * Search known users (from phonebook sync) by displayName |
|
| 139 | + * |
|
| 140 | + * @param string $searcher |
|
| 141 | + * @param string $pattern |
|
| 142 | + * @param int|null $limit |
|
| 143 | + * @param int|null $offset |
|
| 144 | + * @return IUser[] |
|
| 145 | + * @since 21.0.1 |
|
| 146 | + */ |
|
| 147 | + public function searchKnownUsersByDisplayName(string $searcher, string $pattern, ?int $limit = null, ?int $offset = null): array; |
|
| 148 | + |
|
| 149 | + /** |
|
| 150 | + * @param string $uid |
|
| 151 | + * @param string $password |
|
| 152 | + * @throws \InvalidArgumentException |
|
| 153 | + * @return false|\OCP\IUser the created user or false |
|
| 154 | + * @since 8.0.0 |
|
| 155 | + */ |
|
| 156 | + public function createUser($uid, $password); |
|
| 157 | + |
|
| 158 | + /** |
|
| 159 | + * @param string $uid |
|
| 160 | + * @param string $password |
|
| 161 | + * @param UserInterface $backend |
|
| 162 | + * @return IUser|null |
|
| 163 | + * @throws \InvalidArgumentException |
|
| 164 | + * @since 12.0.0 |
|
| 165 | + */ |
|
| 166 | + public function createUserFromBackend($uid, $password, UserInterface $backend); |
|
| 167 | + |
|
| 168 | + /** |
|
| 169 | + * Get how many users per backend exist (if supported by backend) |
|
| 170 | + * |
|
| 171 | + * @return array<string, int> an array of backend class name as key and count number as value |
|
| 172 | + * @since 8.0.0 |
|
| 173 | + */ |
|
| 174 | + public function countUsers(); |
|
| 175 | + |
|
| 176 | + /** |
|
| 177 | + * @param \Closure $callback |
|
| 178 | + * @psalm-param \Closure(\OCP\IUser):void $callback |
|
| 179 | + * @param string $search |
|
| 180 | + * @since 9.0.0 |
|
| 181 | + */ |
|
| 182 | + public function callForAllUsers(\Closure $callback, $search = ''); |
|
| 183 | + |
|
| 184 | + /** |
|
| 185 | + * returns how many users have logged in once |
|
| 186 | + * |
|
| 187 | + * @return int |
|
| 188 | + * @since 11.0.0 |
|
| 189 | + */ |
|
| 190 | + public function countDisabledUsers(); |
|
| 191 | + |
|
| 192 | + /** |
|
| 193 | + * returns how many users have logged in once |
|
| 194 | + * |
|
| 195 | + * @return int |
|
| 196 | + * @since 11.0.0 |
|
| 197 | + */ |
|
| 198 | + public function countSeenUsers(); |
|
| 199 | + |
|
| 200 | + /** |
|
| 201 | + * @param \Closure $callback |
|
| 202 | + * @psalm-param \Closure(\OCP\IUser):?bool $callback |
|
| 203 | + * @since 11.0.0 |
|
| 204 | + */ |
|
| 205 | + public function callForSeenUsers(\Closure $callback); |
|
| 206 | + |
|
| 207 | + /** |
|
| 208 | + * returns all users having the provided email set as system email address |
|
| 209 | + * |
|
| 210 | + * @param string $email |
|
| 211 | + * @return IUser[] |
|
| 212 | + * @since 9.1.0 |
|
| 213 | + */ |
|
| 214 | + public function getByEmail($email); |
|
| 215 | 215 | } |
@@ -31,9 +31,9 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | interface ICommentsEventHandler { |
| 33 | 33 | |
| 34 | - /** |
|
| 35 | - * @param CommentsEvent $event |
|
| 36 | - * @since 11.0.0 |
|
| 37 | - */ |
|
| 38 | - public function handle(CommentsEvent $event); |
|
| 34 | + /** |
|
| 35 | + * @param CommentsEvent $event |
|
| 36 | + * @since 11.0.0 |
|
| 37 | + */ |
|
| 38 | + public function handle(CommentsEvent $event); |
|
| 39 | 39 | } |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | */ |
| 62 | 62 | public function addEntityCollection($name, \Closure $entityExistsFunction) { |
| 63 | 63 | if (isset($this->collections[$name])) { |
| 64 | - throw new \OutOfBoundsException('Duplicate entity name "' . $name . '"'); |
|
| 64 | + throw new \OutOfBoundsException('Duplicate entity name "'.$name.'"'); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | $this->collections[$name] = $entityExistsFunction; |
@@ -32,49 +32,49 @@ |
||
| 32 | 32 | * @since 9.1.0 |
| 33 | 33 | */ |
| 34 | 34 | class CommentsEntityEvent extends Event { |
| 35 | - /** |
|
| 36 | - * @deprecated 22.0.0 |
|
| 37 | - */ |
|
| 38 | - public const EVENT_ENTITY = 'OCP\Comments\ICommentsManager::registerEntity'; |
|
| 35 | + /** |
|
| 36 | + * @deprecated 22.0.0 |
|
| 37 | + */ |
|
| 38 | + public const EVENT_ENTITY = 'OCP\Comments\ICommentsManager::registerEntity'; |
|
| 39 | 39 | |
| 40 | - /** @var string */ |
|
| 41 | - protected $event; |
|
| 42 | - /** @var \Closure[] */ |
|
| 43 | - protected $collections; |
|
| 40 | + /** @var string */ |
|
| 41 | + protected $event; |
|
| 42 | + /** @var \Closure[] */ |
|
| 43 | + protected $collections; |
|
| 44 | 44 | |
| 45 | - /** |
|
| 46 | - * DispatcherEvent constructor. |
|
| 47 | - * |
|
| 48 | - * @param string $event |
|
| 49 | - * @since 9.1.0 |
|
| 50 | - */ |
|
| 51 | - public function __construct($event) { |
|
| 52 | - $this->event = $event; |
|
| 53 | - $this->collections = []; |
|
| 54 | - } |
|
| 45 | + /** |
|
| 46 | + * DispatcherEvent constructor. |
|
| 47 | + * |
|
| 48 | + * @param string $event |
|
| 49 | + * @since 9.1.0 |
|
| 50 | + */ |
|
| 51 | + public function __construct($event) { |
|
| 52 | + $this->event = $event; |
|
| 53 | + $this->collections = []; |
|
| 54 | + } |
|
| 55 | 55 | |
| 56 | - /** |
|
| 57 | - * @param string $name |
|
| 58 | - * @param \Closure $entityExistsFunction The closure should take one |
|
| 59 | - * argument, which is the id of the entity, that comments |
|
| 60 | - * should be handled for. The return should then be bool, |
|
| 61 | - * depending on whether comments are allowed (true) or not. |
|
| 62 | - * @throws \OutOfBoundsException when the entity name is already taken |
|
| 63 | - * @since 9.1.0 |
|
| 64 | - */ |
|
| 65 | - public function addEntityCollection($name, \Closure $entityExistsFunction) { |
|
| 66 | - if (isset($this->collections[$name])) { |
|
| 67 | - throw new \OutOfBoundsException('Duplicate entity name "' . $name . '"'); |
|
| 68 | - } |
|
| 56 | + /** |
|
| 57 | + * @param string $name |
|
| 58 | + * @param \Closure $entityExistsFunction The closure should take one |
|
| 59 | + * argument, which is the id of the entity, that comments |
|
| 60 | + * should be handled for. The return should then be bool, |
|
| 61 | + * depending on whether comments are allowed (true) or not. |
|
| 62 | + * @throws \OutOfBoundsException when the entity name is already taken |
|
| 63 | + * @since 9.1.0 |
|
| 64 | + */ |
|
| 65 | + public function addEntityCollection($name, \Closure $entityExistsFunction) { |
|
| 66 | + if (isset($this->collections[$name])) { |
|
| 67 | + throw new \OutOfBoundsException('Duplicate entity name "' . $name . '"'); |
|
| 68 | + } |
|
| 69 | 69 | |
| 70 | - $this->collections[$name] = $entityExistsFunction; |
|
| 71 | - } |
|
| 70 | + $this->collections[$name] = $entityExistsFunction; |
|
| 71 | + } |
|
| 72 | 72 | |
| 73 | - /** |
|
| 74 | - * @return \Closure[] |
|
| 75 | - * @since 9.1.0 |
|
| 76 | - */ |
|
| 77 | - public function getEntityCollections() { |
|
| 78 | - return $this->collections; |
|
| 79 | - } |
|
| 73 | + /** |
|
| 74 | + * @return \Closure[] |
|
| 75 | + * @since 9.1.0 |
|
| 76 | + */ |
|
| 77 | + public function getEntityCollections() { |
|
| 78 | + return $this->collections; |
|
| 79 | + } |
|
| 80 | 80 | } |
@@ -36,19 +36,19 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | interface ICommentsManagerFactory { |
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * Constructor for the comments manager factory |
|
| 41 | - * |
|
| 42 | - * @param IServerContainer $serverContainer server container |
|
| 43 | - * @since 9.0.0 |
|
| 44 | - */ |
|
| 45 | - public function __construct(IServerContainer $serverContainer); |
|
| 39 | + /** |
|
| 40 | + * Constructor for the comments manager factory |
|
| 41 | + * |
|
| 42 | + * @param IServerContainer $serverContainer server container |
|
| 43 | + * @since 9.0.0 |
|
| 44 | + */ |
|
| 45 | + public function __construct(IServerContainer $serverContainer); |
|
| 46 | 46 | |
| 47 | - /** |
|
| 48 | - * creates and returns an instance of the ICommentsManager |
|
| 49 | - * |
|
| 50 | - * @return ICommentsManager |
|
| 51 | - * @since 9.0.0 |
|
| 52 | - */ |
|
| 53 | - public function getManager(); |
|
| 47 | + /** |
|
| 48 | + * creates and returns an instance of the ICommentsManager |
|
| 49 | + * |
|
| 50 | + * @return ICommentsManager |
|
| 51 | + * @since 9.0.0 |
|
| 52 | + */ |
|
| 53 | + public function getManager(); |
|
| 54 | 54 | } |
@@ -38,11 +38,11 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | interface IUserBackend { |
| 40 | 40 | |
| 41 | - /** |
|
| 42 | - * Backend name to be shown in user management |
|
| 43 | - * @return string the name of the backend to be shown |
|
| 44 | - * @since 8.0.0 |
|
| 45 | - */ |
|
| 46 | - public function getBackendName(); |
|
| 41 | + /** |
|
| 42 | + * Backend name to be shown in user management |
|
| 43 | + * @return string the name of the backend to be shown |
|
| 44 | + * @since 8.0.0 |
|
| 45 | + */ |
|
| 46 | + public function getBackendName(); |
|
| 47 | 47 | |
| 48 | 48 | } |
@@ -30,33 +30,33 @@ |
||
| 30 | 30 | * @since 8.0.0 |
| 31 | 31 | */ |
| 32 | 32 | interface IEvent { |
| 33 | - /** |
|
| 34 | - * @return string |
|
| 35 | - * @since 8.0.0 |
|
| 36 | - */ |
|
| 37 | - public function getId(); |
|
| 33 | + /** |
|
| 34 | + * @return string |
|
| 35 | + * @since 8.0.0 |
|
| 36 | + */ |
|
| 37 | + public function getId(); |
|
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * @return string |
|
| 41 | - * @since 8.0.0 |
|
| 42 | - */ |
|
| 43 | - public function getDescription(); |
|
| 39 | + /** |
|
| 40 | + * @return string |
|
| 41 | + * @since 8.0.0 |
|
| 42 | + */ |
|
| 43 | + public function getDescription(); |
|
| 44 | 44 | |
| 45 | - /** |
|
| 46 | - * @return float |
|
| 47 | - * @since 8.0.0 |
|
| 48 | - */ |
|
| 49 | - public function getStart(); |
|
| 45 | + /** |
|
| 46 | + * @return float |
|
| 47 | + * @since 8.0.0 |
|
| 48 | + */ |
|
| 49 | + public function getStart(); |
|
| 50 | 50 | |
| 51 | - /** |
|
| 52 | - * @return float |
|
| 53 | - * @since 8.0.0 |
|
| 54 | - */ |
|
| 55 | - public function getEnd(); |
|
| 51 | + /** |
|
| 52 | + * @return float |
|
| 53 | + * @since 8.0.0 |
|
| 54 | + */ |
|
| 55 | + public function getEnd(); |
|
| 56 | 56 | |
| 57 | - /** |
|
| 58 | - * @return float |
|
| 59 | - * @since 8.0.0 |
|
| 60 | - */ |
|
| 61 | - public function getDuration(); |
|
| 57 | + /** |
|
| 58 | + * @return float |
|
| 59 | + * @since 8.0.0 |
|
| 60 | + */ |
|
| 61 | + public function getDuration(); |
|
| 62 | 62 | } |
@@ -31,41 +31,41 @@ |
||
| 31 | 31 | * @since 8.0.0 |
| 32 | 32 | */ |
| 33 | 33 | interface ITempManager { |
| 34 | - /** |
|
| 35 | - * Create a temporary file and return the path |
|
| 36 | - * |
|
| 37 | - * @param string $postFix |
|
| 38 | - * @return string |
|
| 39 | - * @since 8.0.0 |
|
| 40 | - */ |
|
| 41 | - public function getTemporaryFile($postFix = ''); |
|
| 34 | + /** |
|
| 35 | + * Create a temporary file and return the path |
|
| 36 | + * |
|
| 37 | + * @param string $postFix |
|
| 38 | + * @return string |
|
| 39 | + * @since 8.0.0 |
|
| 40 | + */ |
|
| 41 | + public function getTemporaryFile($postFix = ''); |
|
| 42 | 42 | |
| 43 | - /** |
|
| 44 | - * Create a temporary folder and return the path |
|
| 45 | - * |
|
| 46 | - * @param string $postFix |
|
| 47 | - * @return string |
|
| 48 | - * @since 8.0.0 |
|
| 49 | - */ |
|
| 50 | - public function getTemporaryFolder($postFix = ''); |
|
| 43 | + /** |
|
| 44 | + * Create a temporary folder and return the path |
|
| 45 | + * |
|
| 46 | + * @param string $postFix |
|
| 47 | + * @return string |
|
| 48 | + * @since 8.0.0 |
|
| 49 | + */ |
|
| 50 | + public function getTemporaryFolder($postFix = ''); |
|
| 51 | 51 | |
| 52 | - /** |
|
| 53 | - * Remove the temporary files and folders generated during this request |
|
| 54 | - * @since 8.0.0 |
|
| 55 | - */ |
|
| 56 | - public function clean(); |
|
| 52 | + /** |
|
| 53 | + * Remove the temporary files and folders generated during this request |
|
| 54 | + * @since 8.0.0 |
|
| 55 | + */ |
|
| 56 | + public function clean(); |
|
| 57 | 57 | |
| 58 | - /** |
|
| 59 | - * Remove old temporary files and folders that were failed to be cleaned |
|
| 60 | - * @since 8.0.0 |
|
| 61 | - */ |
|
| 62 | - public function cleanOld(); |
|
| 58 | + /** |
|
| 59 | + * Remove old temporary files and folders that were failed to be cleaned |
|
| 60 | + * @since 8.0.0 |
|
| 61 | + */ |
|
| 62 | + public function cleanOld(); |
|
| 63 | 63 | |
| 64 | - /** |
|
| 65 | - * Get the temporary base directory |
|
| 66 | - * |
|
| 67 | - * @return string |
|
| 68 | - * @since 8.2.0 |
|
| 69 | - */ |
|
| 70 | - public function getTempBaseDir(); |
|
| 64 | + /** |
|
| 65 | + * Get the temporary base directory |
|
| 66 | + * |
|
| 67 | + * @return string |
|
| 68 | + * @since 8.2.0 |
|
| 69 | + */ |
|
| 70 | + public function getTempBaseDir(); |
|
| 71 | 71 | } |