@@ -312,16 +312,18 @@ class File
return $this;
}
+ /**
+ * @deprecated
+ * @return string|null
+ */
public function getPath(): ?string
{
- return $this->path;
+ return $this->slug;
public function setPath(?string $path): self
- $this->path = $path;
-
- return $this;
+ throw new \Exception('Deprecated : use setSlug instead');
public function getName(): string