mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-10-10 17:58:07 +02:00
Code optimation by PHP-Code Sniffer
This commit is contained in:
@@ -19,8 +19,6 @@ trait SlugAttribut
|
||||
/**
|
||||
* @todo Maybe throw an other Exception here?
|
||||
*
|
||||
* @param string $slug
|
||||
*
|
||||
* @throws ValueInvalidException
|
||||
*/
|
||||
public function setSlug(string $slug): void
|
||||
@@ -31,17 +29,11 @@ trait SlugAttribut
|
||||
$this->slug = $slug;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSlug(): ?string
|
||||
{
|
||||
return $this->slug;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function hasSlug(): bool
|
||||
{
|
||||
return isset($this->slug);
|
||||
|
Reference in New Issue
Block a user