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