mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
fix: psalm issues and coding style
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
b01e0c31fb
commit
fecf6425cf
2 changed files with 19 additions and 7 deletions
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
namespace OCP\TextProcessing\Exception;
|
||||
|
||||
/**
|
||||
* Exception thrown when a task failed
|
||||
* @since 28.0.0
|
||||
*/
|
||||
class TaskFailureException extends \RuntimeException {
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -224,11 +224,20 @@ final class Task implements \JsonSerializable {
|
|||
];
|
||||
}
|
||||
|
||||
final public function setCompletionExpectedAt(\DateTime $completionExpectedAt): void {
|
||||
$this->completionExpectedAt = $completionExpectedAt;
|
||||
}
|
||||
/**
|
||||
* @param null|\DateTime $completionExpectedAt
|
||||
* @return void
|
||||
* @since 28.0.0
|
||||
*/
|
||||
final public function setCompletionExpectedAt(?\DateTime $completionExpectedAt): void {
|
||||
$this->completionExpectedAt = $completionExpectedAt;
|
||||
}
|
||||
|
||||
final public function getCompletionExpectedAt(): ?\DateTime {
|
||||
return $this->completionExpectedAt;
|
||||
}
|
||||
/**
|
||||
* @return \DateTime|null
|
||||
* @since 28.0.0
|
||||
*/
|
||||
final public function getCompletionExpectedAt(): ?\DateTime {
|
||||
return $this->completionExpectedAt;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue