Refactored ShortUrlRepository to wrap args into DTOs

This commit is contained in:
Alejandro Celaya
2022-01-17 20:10:41 +01:00
parent 0727c7bdfb
commit 661b07e12f
9 changed files with 251 additions and 119 deletions

View File

@@ -18,6 +18,11 @@ final class Ordering
return new self($field, $dir ?? self::DEFAULT_DIR);
}
public static function emptyInstance(): self
{
return self::fromTuple([null, null]);
}
public function orderField(): ?string
{
return $this->field;